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.

2575 questions
7
votes
3 answers

Get current jupyter-lab notebook name [for Jupyter-lab version 2.1 and 3.0.1 and notebook version >6.0.3)

Problem Hi all, As my title suggested it, I would like to get access to the notebook name (in jupyter-lab) as a variable. So I could reuse it in the notebook itself (for example to name some figure files generated in the notebook). I saw that a…
lhoupert
  • 584
  • 8
  • 25
7
votes
6 answers

Windows Subsystem for Linux (WSL 2) and Jupyter Lab : How to open a Jupyter Notebook saved at the Linux file system?

I have a Jupyter lab installed on Windows. I installed Jupyter Lab on WSL Ubuntu. I can lunch Jupyter Lab from Linux terminal. This will open Jupyter Lab on Chrome browser from which I can start a new Jupyter Notebook with Python [conda env:root]*.…
7
votes
4 answers

Restart Jupyter Lab server running in the background

I'm trying to restart a Jupyter Lab server (not just the kernels) running in the background of an AWS SageMaker notebook instance. I have already tried the following: Killing the server by it's process ID pgrep doesn't show me the process pkill…
7
votes
2 answers

Is there an equivalent to hinterland notebook extensions in JupyterLab?

I've always enjoyed using the Hinterland Jupyter Notebook extensions for code completion because you don't have to tab to autocomplete. I'm trying to migrate to JupyterLab and I'm not keen on tab-completion. I've looked through…
Kai Chaza
  • 171
  • 1
  • 6
7
votes
5 answers

How can I see all installed Python modules in Jupyter Lab (like pip freeze) with Python 3.7 or newer?

I'm looking for a way to get a list of all installed/importable python modules from a within a Jupyterlab notebook. From the command line, I can get the list by running py -3 -m pip freeze (or) pip freeze In the Jupyterlab console, running pip…
576i
  • 7,579
  • 12
  • 55
  • 92
7
votes
0 answers

Increase size of rleaflet map in Jupyter Lab display (R in Jupyter)

When using R and rleaflet in a Jupyter Lab Notebook. My output map is short and wide with a vertical scroll box, and I can find no means of increasing it's height. # Code to reproduce library(leaflet) m = leaflet() %>% addTiles() m results in:
Colin Talbert
  • 454
  • 6
  • 20
7
votes
1 answer

Bokeh: Repeated plotting in jupyter lab increases (browser) memory usage

I am using Bokeh to plot many time-series (>100) with many points (~20,000) within a Jupyter Lab Notebook. When executing the cell multiple times in Jupyter the memory consumption of Chrome increases per run by over 400mb. After several cell…
pch
  • 71
  • 6
7
votes
3 answers

Jupyter kernel uses different Python version than Conda environment

I am not able to link Jupyter kernels to their parent Conda environments. After creating a new kernel linked to Conda environment, I'm getting a different version of Python and its dependencies inside Jupyter lab. Here are the steps I…
7
votes
3 answers

Animated plotly-express graph not showing up in jupyter-lab

The following example produces an animated graph that can be displayed with jupyter notebook, but in jupyter-lab the graph does not show up. %pylab inline import plotly.express as px gapminder = px.data.gapminder() px.scatter(gapminder,…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
7
votes
2 answers

How to access Jupyter notebook stored in Windows when Jupyter runs from Ubuntu WSL?

I have setup WSL (Windows Subsystem for Linux) on Windows 10 and installed Anaconda with python 3 and jupyter lab included. When launching Jupyter lab, I am asked to copy paste http://localhost:8888/lab in my browser, and that works fine. However,…
Lanmar
  • 73
  • 6
7
votes
2 answers

Launch jupyter-lab and open a specific notebook from the command line?

I'm writing a bash script that ends by launching jupyter-lab and (ideally) opening a specific notebook. In jupyter, this is easy to do: $ jupyter notebook my_folder/my_notebook.ipynb I can't find any guidance for how to do this in jupyter-lab.…
Abe
  • 22,738
  • 26
  • 82
  • 111
7
votes
0 answers

Jupyter lab: is it possible to display output only in a separate view

I've been working with Jupyter notebooks quite a while but right now, I'm switching to Jupyter lab. I really like it, especially the possibility to create a new view for my outputs and hide the output from the main notebook. However, once you run…
dheinz
  • 988
  • 10
  • 16
7
votes
1 answer

How to set the tab size for a specific kernel in Jupyterlab?

In Jupyterlab, It is possible to change the tab space for each constituent of a Jupyter notebook through Settings -> Advanced Settings Editor -> Notebook option and editing the tabSize attribute. However, this changes the tab size for the notebooks…
Ébe Isaac
  • 11,563
  • 17
  • 64
  • 97
7
votes
2 answers

Map keyboard shortcut to code snippet in Jupyter Lab

Does anyone know if there a way to bind a code snippet to a keyboard shortcut in Jupyter Lab? For example in R Studio you can use Ctrl+Shift+M to write the pipe operator (%>%) quickly and I got used to that functionality so I would like to replicate…
Sraffa
  • 1,658
  • 12
  • 27
7
votes
0 answers

Server Connection Error 500 with Jupyter Lab

I have installed Jupyter Lab but when I launch it I get an error: "Server Connection Error Invalid response: 500 Internal Server Error" My python set up is Anaconda which probably has something to do with this. Full error message from command…
Johnny V
  • 1,108
  • 14
  • 21