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
9
votes
1 answer

Customizing JupyterLab Launcher

I'd like to add some custom content in my JupyterLab Launcher. This is the first page that new users see and I want to tell them about specifics of this environment and link to stuff. Kind of like this: The Launcher's code is simple, and I can…
Daniel Darabos
  • 26,991
  • 10
  • 102
  • 114
9
votes
2 answers

Widget and graph don't show up in Jupyter lab (they show up as text)

I was trying to use %matplotlib widget to achieve interactivity in Jupiter Lab. But the output plot and widgets only showed up as texts. How to make the actual plot and widgets show up? %matplotlib widget import matplotlib.pyplot as…
alyishere
  • 93
  • 1
  • 4
9
votes
1 answer

How to Update the Installed Widgets

When I started Jupyter Lab from the cmd prompt within a python virtual environment folder, I noticed the Jupyter startup process display that three of the Jupyter widgets are outdated. There was no display message describing how to update these…
Gray
  • 1,164
  • 1
  • 9
  • 23
9
votes
1 answer

Can't upgrade JupyterLab to latest version

I am trying to upgrade JupyterLab to pre-release but when I check the installed version after upgrading I still get the old version (0.33.11). To install the pre-release I used: pip install -U --pre jupyterlab I have also tried to upgrade to the…
ebertini
  • 91
  • 1
  • 2
9
votes
3 answers

How can I import code and markdown cells from Python to Jupyter notebook?

For version control reasons, I must save my code in .py files. I would like to be able to able to import cells of Python code and Markdown documentation from .py files to Jupyter notebook. For example, I would like to use Jupyter notebook to run my…
Yixing Liu
  • 2,179
  • 1
  • 20
  • 36
9
votes
0 answers

How do I increase the output width of JupyterLab in my browser?

In the original Jupyter notebooks, it was possible to increase cell output width with the following command: from IPython.core.display import display, HTML display(HTML("")) In JupyterLab, the…
Keith Lyons
  • 564
  • 7
  • 14
9
votes
3 answers

Jupyterlab: turn on tab completion for text editor as in Notebook?

In Jupyterlab, there is a text editor that we can open .py files, is it possible to also turn on tab completion, just like how it works in Notebook ?
Xingdong
  • 1,305
  • 2
  • 13
  • 18
8
votes
2 answers

How to view a markdown file in jupyter lab properly?

How to view a markdown file in Jupyter lab properly? The readme file of a git project is written in markdown, as usual. How can one properly view it in Jupyter lab (rendered)? Currently I see the text version only.
user25004
  • 1,868
  • 1
  • 22
  • 47
8
votes
2 answers

How to undo/redo changes inside the selected cell in Jupyter notebook?

I am using Jupyter Notebook (from Anaconda JupyterLab) on Windows 10 and tried to undo/redo changes in the selected cell. However, I can only undo/redo changes in the whole notebook. For example, I edited cell#1 then cell#2. Say I want to undo…
s99090
  • 83
  • 1
  • 5
8
votes
2 answers

JupyterLab 3.0.16: Exporting HTML results on "Blocking request with no referer" and "403 Blocking request from unknown origin"

I am having what seems to be a perennial problem with JupyterLab users but when applying the solutions that have worked with others, I am not getting positive results. This problem is new, only emerging over the past few weeks. This problem is…
Bill Capehart
  • 85
  • 1
  • 5
8
votes
3 answers

Q: Can't start up Jupyter Lab on MacOS

Trying to start Jupyter Lab using jupyter lab gives the following error: AttributeError: 'ExtensionManager' object has no attribute '_extensions' In case this has anything to do with Python, I am using version 3.9.5 installed through Homebrew. >…
Nat Tan
  • 91
  • 1
  • 2
8
votes
0 answers

JSON styling in Jupyter Lab and GitHub

Jupyter Notebook (and Jupyter Lab) comes with a very convenient and interactive JSON formatter. It's very useful for letting a user look through a very deep dictionary without flooding the output cell with a huge amount of information. Normally, if…
8
votes
2 answers

How to find the version of jupyter notebook from within the notebook

I wish to return the version of Jupyter Notebook from within a cell of a notebook. For example, to get the python version, I run: from platform import python_version python_version() or to get the pandas version: pd.__version__ I have…
CreekGeek
  • 1,809
  • 2
  • 14
  • 24
8
votes
1 answer

How to update Jupyter Lab version for GCP AI Platform Notebook

I created a GCP AI Platform Notebook instance a while ago, and the version seemed to be too low for many extensions I am trying to install. I did a pip install upgrade jupyterlab and restarted the VM instance. When I clicked on OPEN JUPYTERLAB, I…
8
votes
1 answer

JupyterLab: How to clear output of current cell using a keyboard shortcut?

This question has been asked and answered for Jupyter Notebooks here. There is one suggestion regarding JupyterLab there as well on how to hide cell output, but not to clear it. This is easy enough using the menu under Edit > Clear Outputs. But how…
vestland
  • 55,229
  • 37
  • 187
  • 305