Questions tagged [jupyter-lab]

JupyterLab is a web application that provides a frontend to many different languages and interactive shells such as IPython. JupyterLab enables you to work with documents and activities such as Jupyter notebooks, text editors, terminals, and custom components. You can arrange documents side by side using tabs and splitters. It supports Markdown, Python, R, LaTeX, images, CSV, JSON, PDF, Vega etc. Use this tag for questions related only to JupyterLab.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

How to get active/focused notebook's full path in JupyterLab's UI extension?

I am developing a custom JupyterLab extension and I need to get active/focused notebook's full path on a button click. I already have the button and the click registered. I wanted to get the path from ...
Anoush Hakobyan's user avatar
0 votes
0 answers
11 views

Jupyter Lab not working: the cell runs forever and python is not detected

Jupyter Lab is not working. I open the terminal from a Mac and run: MBPdiAlessandro:~ alessandro$ jupyter-lab Then Jupyter opens through Safari. I close all the active kernels. I make a new Python 3 ...
A.J.'s user avatar
  • 113
0 votes
0 answers
8 views

in plotly, how to change colors with css variables?

I would like to be able to change colors with css variables so that when other parts of my React code changes that css variable dynamically, it should reflect the change inside of plotly frame as well....
Terlan's user avatar
  • 21
0 votes
0 answers
6 views

How to connect Apple GPU to Jupyter Notebook?

Currently, I am on Macbook pro M2 pro system. I want to set my jupyter notebook runtime on GPU cores rather than CPU cores. Since, I am working on ML Projects (using scikit-learn). ANy ides how to set ...
Alok Tondrang's user avatar
1 vote
1 answer
41 views

Programmatically shutting down jupyterlab kernels

My team is trying to cut our cloud cost budget via shutting down all kernels, open terminals inside Jupyterlab. This can be easily done by navigating to the open kernels section, then clicking Shut ...
Ottpocket's user avatar
  • 109
0 votes
0 answers
42 views

Export Jupyter Notebook cell output that includes Plotly plots to an html file

I have a cell in a pretty long jupyter notebook that has an output that includes text (through print statements) as well as 3D scatter plots made with plotly (a python plotting library). The text and ...
J_Code's user avatar
  • 57
0 votes
0 answers
26 views

Display plotly go figure in widget

I would like to make a widget in jupyter lab with a plotly go figure. I started by copying this example: https://plotly.com/python/figurewidget-app/?_ga=2.180976559.943274886.1701077393-1452099185....
esperluette's user avatar
  • 1,852
1 vote
2 answers
125 views

How to change sympy plot properties in Jupyter with matplotlib methods

The following code in a script works as expected, from sympy import * x = symbols('x') p = plot(x, x*(1-x), (x, 0, 1)) ax = p._backend.ax[0] ax.set_yticks((0, .05, .25)) p._backend.fig.savefig('...
gboffi's user avatar
  • 23.4k
0 votes
0 answers
9 views

How to integrate and visualize data from couchDB to Jupyter?

I have been trying to access an database from couchDB through jupyter that can be visualized in JupyterLab. I have tried looking for solution but the data is not being displayed. I have tried the ...
Sujay Kharel's user avatar
1 vote
1 answer
33 views

Launch Jupyter ECS Fargate with password stored in AWS Secrets manager

I have successfully managed to run a Jupyter Lab on ECS by using Terraform. I want to protect the setup by using a password stored in AWS secrets manager. The point is that the parameter NotebookApp....
Leonardo's user avatar
  • 9,657
0 votes
1 answer
23 views

Pandas: How to append a dataframe to itself if .append has been deprecated? [duplicate]

Learn Data Sci: Pandas A Complete Tutorial I am following this tutorial to learn some basic Python for data analysis and I'm starting to realize it may be dated. There is a section where it copies and ...
half.cab's user avatar
1 vote
0 answers
56 views

Can't create Vertex AI (GCP) notebook with custom container

I'm trying to create a Vertex AI notebook using a Custom Container to train my torch model on GCP. I wasn't able to correctly generate a notebook using this custom container and I can't understand why....
olenscki's user avatar
  • 495
0 votes
0 answers
16 views

ModuleError with pyranges when reading .pkl file in Jupyter Notebook

I need to read a .pkl file in JupyterLab. The code I have is: import dill # Loading scplus_obj scplus_obj = dill.load(open('/path-to-my-file/scplus_obj.pkl', 'rb')) The error get is : --------------...
Arnoneel Sinha's user avatar
0 votes
0 answers
24 views

gcloud ssh with localhost:8080 for deeplearning-vm is not established

I have created an instance using deeplearning VM image. And established SSH, but while accessing the jupyter lab (using Google SDK CLI locally) at the localhost:8080 it returns an error bind [127.0.0....
itsRaj1's user avatar
0 votes
0 answers
12 views

Jupyter Notebook Search while using Collapsible Headings

I'm working on some pretty long Jupyter Notebook files. I'm keeping them organised with markdown headings and I'm using the NBextension 'Collapsible Headings' to only open the code I want to see in a ...
J_Code's user avatar
  • 57
1 vote
0 answers
24 views

Jupyter Pre-Execution Hook / Cell Change Listener

I've been exploring different ways to listen for text changes in a notebook cell within JupyterLab. My current approach involves using INotebookTracker's activeCellChanged and currentChanged events to ...
jjvraw's user avatar
  • 11
0 votes
0 answers
8 views

how to stop python script when running in workspace jupyterlab

I made a pythonscript that opens an excel file and loads it into a df. Running the script in Jupyterlab gives memory issues. Problem was in the amount of columns in the original excel file. I made an ...
Ron Kieftenbeld's user avatar
0 votes
0 answers
46 views

Interactively subset AND edit dataframes with panel's tabulator

I want to interactively edit a large dataframe, by also interactively subsetting to batches of rows. I am trying this with the Python package panel and its Tabulator class in a jupyter lab notebook. ...
Paul's user avatar
  • 1
0 votes
1 answer
20 views

how to run python code from jupyterlab extension

https://github.com/jupyterlab/extension-template I want to be able to run python code from this extension. how can i do that? please show me. thanks
Terlan's user avatar
  • 21
0 votes
1 answer
31 views

How to make LinearGAM().fit() function work?

I have a problem with a LinearGAM fit function. I use the below code to perform fit operation on the data I have in a DataFrame. scaled = scaler.transform(data) X2 = scaled[:,:-1] y2 = scaled[:,-1] ...
Mikołaj Mrożewski's user avatar
1 vote
1 answer
39 views

Why is jedi installed?

My basic understanding is that jedi was an old method to do autocompletion / hints. The new method is LSP, and we can use an LSP server with jupyterlab through jupyterlab-lsp. One such LSP server for ...
robertspierre's user avatar
0 votes
0 answers
18 views

The Jupyter Lab code completion is overager and often gets in the way instead of helping

After turning on the code completion in Jupyter Lab, I find myself constantly hitting the Escape key to swat away the constant stream of completely useless suggestions being made. This is an example, ...
CarlosE's user avatar
  • 878
2 votes
1 answer
51 views

Why does conda install non-compatible jupyterlab dependency (prometheus_client) in my environment?

I am running conda via a standard miniconda3 installation on Ubuntu 20.04. I need a Python 3.7 environment and have the following simplified conda environment file (test_env.yaml): name: test-env ...
olamarre's user avatar
  • 175
0 votes
2 answers
59 views

Store SymPy solve() results in a useful form

I wrote a for-loop to solve for a bunch of angles. I have all the results stored in a NumPy array of dictionaries. But I want all the answers in degrees (not radians) and rounded. It is basic but I am ...
remusconnor's user avatar
0 votes
1 answer
26 views

Cannot load Jupyter Lab after installing "jupyter-markdown" extension

I have just installed Jupyter Lab via pip install. It works well until I installed "jupyter-markdown" extension via pip install jupyter-markdown. Now I cannot load Jupyter Lab. I get the ...
ezyman's user avatar
  • 155
0 votes
1 answer
40 views

SymPy hangs up when trying to solve system of equations

I am trying to solve a system of two equations for two unknowns. Jupyter ran indefinitely in the attempt to solve these equations. My code: import numpy as np import sympy as smp #Enable LaTex display ...
remusconnor's user avatar
0 votes
1 answer
26 views

How to ouput SymPy solution as LaTex

Does anyone know an easy way to have SymPy display the solution with a LaTex format? The solution is going into a report, and I do not want to have to retype the whole thing. The equations are ...
remusconnor's user avatar
0 votes
1 answer
29 views

JupyterHub on Kubernetes cannot failed to cull user pods

I implemented JupyterHub using a Helm chart on a local Kubernetes cluster on VMware virtual machines. I want to cull users after they have been inactive for a while, but it seems not to work. This ...
Lyudmila Sun's user avatar
0 votes
0 answers
23 views

Automation of PV and creation of folders in NFS server for Jupyterhub on Kubernetes

I have used the following GitHub link for jupyterhub installation:https://github.com/bitnami/charts/tree/main/bitnami/jupyterhub My problem is while user tries to log in jupyterhub it will create PVC ...
Aditya Janghale's user avatar
1 vote
1 answer
43 views

pandas_csv_sniffer installation fails using either conda, pip, or setup.py

I am having difficulty installing the pandas_csv_sniffer Python package with the current versions of pandas, Python, conda, and pip. (This package provides a helpful jupyter notebook GUI for finding ...
Hilary's user avatar
  • 11
0 votes
1 answer
67 views

Why are Python packges installed in such a convoluted path and is this a problem

I just installed Jupyter Lab and I got this warning about the PATH. This directory is very messy - C:\Users\USERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\...
wayner's user avatar
  • 39
0 votes
0 answers
19 views

Geemap: How to export a map that I can create with addlayer in a geolocalized tiff file with Jupyterlab

I get the map I want as a layer but I do not know how to extract the SAME map geolocalized. I only managed to create a html file but it is not really useful. dataset is a imagecollection m.add_layer(...
Laurent Tanner's user avatar
1 vote
1 answer
56 views

How to register Apache Sedona SQL functions in Amazon EMR JupyterLab?

I have set up Apache Sedona in Amazon EMR cluster based on https://sedona.apache.org/1.5.0/setup/emr/ I attached the EMR cluster to the JupyterLab in the Amazon EMR. First I set up config to allow me ...
Hongbo Miao's user avatar
  • 46.4k
0 votes
0 answers
33 views

rasterio doesn't import to local dask cluster

I am running an analysis on a large number of rasters with Dask in a Jupyter Lab notebook on a Windows computer. When I run my analysis using Coiled (cloud cluster), the analysis runs fine. However, ...
DGibbs's user avatar
  • 13
2 votes
0 answers
43 views

Why import spaCy results in error in Python?

I'm trying to run: !pip install -U pip setuptools wheel !pip install -U spacy !python -m spacy download en_core_web_sm #English model optimized for CPU So when I try to run the cell below, it does ...
Monster's user avatar
  • 21
0 votes
0 answers
109 views

Failed building wheel for pyzmq. could not build wheels for pyzmq, which is required to install pyproject.toml-based projects

could not build wheels for pyzmq, which is required to install pyproject.toml-based projects. Things I found on internet didn't help (such as pip install pyzmq==23.2.1) To reproduce: follow ...
Terlan's user avatar
  • 21
0 votes
0 answers
8 views

how to create a widget both on python and js side in jupyterlab?

I want to have for example a React widget that is both in python and js side and can be modified from both side. I also want to be able to run commands from python side that are declared in js side ...
Terlan's user avatar
  • 21
2 votes
1 answer
24 views

How can I add newline for IPython.display.Latex output?

I try to print out the 2 matrix objects with aligned using the Latex object, but adding \\ does not work as expected. What am I doing wrong? from IPython.display import display, Math,Latex s = r&...
Ray Ronnaret's user avatar
0 votes
0 answers
40 views

Jupyterlab: "Error displaying widget: model not found" - Step-by-step instructions on how to debug

When installing new jupyterlab extensions or widgets, a common error displayed is: Error displaying widget: model not found. The console displayed cryptic error messages such as: Could not instantiate ...
tomanizer's user avatar
  • 871
0 votes
0 answers
19 views

CSS nesting rules not working on jupyterlab. how to fix?

the problem is modern native CSS supports nesting rules in browsers. But it doesn't work on jupyterlab or jupyter notebooks and I dont know why. Nested css is included in bundled code, still not ...
Terlan's user avatar
  • 21
0 votes
0 answers
33 views

Manually connecting two Docker containers: SQL Server and Jupyter Lab - Error: ('IM004')

I'm currently working as a data analyst for a healthcare company, the DataLake infrastructure is in SQL Server and I'm currently trying to analyze the current state of all the databases in a Jupyter ...
ClearNote97's user avatar
0 votes
2 answers
118 views

502 Bad Gateway. Nginx cannot to connect using reverse proxy with docker-compose

Hello I want to say right away that I have been using docker-compose and nginx for not so long, sorry if you'll see some mistakes from my own. M I am facing with problem with nginx settings and can't ...
LiechtensteinSpy's user avatar
0 votes
0 answers
11 views

How can I figure out GCP JupyterLab web frozen issue when loading/running some specific notebooks?

I just start running GCP JupyterLab. The website keeps frozen when loading or running some Jupyter notebook. Sometimes I got message which asked me to wait or exit. Sometimes, I got crashed website. I ...
Leon's user avatar
  • 464
0 votes
0 answers
28 views

How to get LaTeX symbol rendering correctly in ipywidgets?

I have some code in Jupyter Lab which contains the 'infinity' symbol, coded as it would be in LaTeX. This symbol appears both in markdown and in printed text coming out of an ipywidgets slider ...
evilsnowdrop's user avatar
0 votes
0 answers
16 views

Jupyter lab multiple notebooks with daemon application

I'm planning to create a custom Jupyter kernel which runs external daemon app(Verum Dezyne) and displays stuff at localhost/xxx0-xxx4 within the notebook cells. Looks like THIS I managed to create a ...
Kobi's user avatar
  • 1
0 votes
0 answers
76 views

Jupyter Lab will not launch from macOS terminal due to import error

I am trying to open jupyter lab on my macOS 12.5 and using terminal shell bash, but I receive the following error: from rpds import HashTrieMap, HashTrieSet, List ImportError: cannot import name '...
Mary's user avatar
  • 1
0 votes
0 answers
22 views

Navigating and opening a Jupyter notebook outside of your directory tree from within JupyterLab

Is there an efficient way to open a notebook that is outside of the working directory tree? I can open a terminal in JupyterLab and cd to my desired location of course. How then do I open my desired ...
JackyChan's user avatar
0 votes
1 answer
22 views

here-map-widget-for-jupyter outdated

Is there a method to make here-map-widget-for-jupyter function in the most recent Python environment? The command pip install here-map-widget-for-jupyter installs without issues, but the widget isn't ...
pretenderjarod's user avatar
0 votes
0 answers
12 views

How can I add a custom mimetype for rendering in jupyterlab?

I have some python calculations which are being done and all the data is being stored as possibly a json or a string object. I would like to create a custom renderer for this, such that it reads this ...
Savakar Rohan's user avatar
1 vote
0 answers
66 views

How to run shiny rmd file from jupyterlab

I have a shiny rmd file which is working in the RStudio IDE. However, I have to include it as part of a pipeline so I have to run it through Jupyterlab. I have the runtime: shiny at the start of my ...
Alex's user avatar
  • 11

1
2 3 4 5
53