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
557
votes
25 answers

Conda environments not showing up in Jupyter Notebook

I installed Anaconda (with Python 2.7), and installed Tensorflow in an environment called tensorflow. I can import Tensorflow successfully in that environment. The problem is that Jupyter Notebook does not recognize the new environment I just…
user31039
  • 6,149
  • 4
  • 14
  • 9
425
votes
8 answers

What is the difference between Jupyter Notebook and JupyterLab?

I am new to Jupyter Notebook, what is the key difference between the Jupyter Notebook and JupyterLab, suggest me to choose the best one, which should be used in future.
krist
  • 4,357
  • 2
  • 9
  • 11
199
votes
11 answers

How can I add a table of contents to a Jupyter / JupyterLab notebook?

The documentation at http://ipython.org/ipython-doc/stable/interactive/notebook.html says You can provide a conceptual structure for your computational document as a whole using different levels of headings; there are 6 levels available, from level…
user2428107
  • 3,003
  • 3
  • 17
  • 19
193
votes
7 answers

How to add conda environment to jupyter lab

I'm using Jupyter Lab and I'm having trouble to add conda environment. The idea is to launch Jupyter Lab from my base environment, and then to be able to choose my other conda envs as kernels. I installed the package nb_conda_kernels which is…
Statistic Dean
  • 4,861
  • 7
  • 22
  • 46
149
votes
6 answers

Javascript Error: IPython is not defined in JupyterLab

I have the latest/updated Anaconda package. Everytime I try to plot something using python 3.6.6 I get the following error in JupyterLab... Javascript Error: IPython is not defined When I run the same code in Spyder using an ipython kernel, it…
AntMan
  • 1,493
  • 2
  • 8
  • 5
116
votes
15 answers

How do I get the current IPython / Jupyter Notebook name

I am trying to obtain the current NoteBook name when running the IPython notebook. I know I can see it at the top of the notebook. What I am after something like currentNotebook = IPython.foo.bar.notebookname() I need to get the name in a variable.
Tooblippe
  • 3,433
  • 3
  • 17
  • 25
94
votes
12 answers

Plotly chart not showing in Jupyter notebook

I have been trying to solve this issue for hours. I followed the steps on the Plotly website and the chart still doesn't show in the notebook. This is my code for the plot: colorway = ['#f3cec9', '#e7a4b6', '#cd7eaf', '#a262a9', '#6f4d96',…
Guillermina
  • 3,127
  • 3
  • 15
  • 24
75
votes
11 answers

How to get ipywidgets working in Jupyter Lab?

In Jupyter Notebook, ipywidgets work fine, however they seem to not work in Jupyter Lab (which is supposedly better than Notebook). I followed these directions. Step 1: Installed Node.js (https://nodejs.org/en/) Step 2: Installed requirements on…
user5601
  • 858
  • 1
  • 7
  • 9
74
votes
6 answers

How to update jupyterlab using conda or pip

How do you update jupyterlab using conda or pip? I understand that conda update jupyter updates jupyter notebook (I have Anaconda), but I'm not sure this takes care of jupyterlab as well.
a06e
  • 18,594
  • 33
  • 93
  • 169
73
votes
6 answers

jupyterlab interactive plot

With old Jupyter notebooks, I could create interactive plots via: import matplotlib.pyplot as plt %matplotlib notebook x = [1,2,3] y = [4,5,6] plt.figure() plt.plot(x,y) However, in JupyterLab, this gives an error: JavaScript output is disabled in…
Albatross
  • 955
  • 1
  • 7
  • 13
70
votes
8 answers

Keep Jupyter notebook running after closing browser tab

I use Jupyter Notebook to run a series of experiments that take some time. Certain cells take way too much time to execute so it's normal that I'd like to close the browser tab and come back later. But when I do the kernel interrupts running. I…
Flo
  • 1,367
  • 1
  • 13
  • 27
68
votes
3 answers

How to Find & Replace in Jupyter Lab

There's an option in Jupyter Notebooks where you can select some cells, and then hit F, which opens up a Find & Replace feature. This shortcut doesn't work in Jupyter Lab. It's not in the Commands list and it's not in the Edit Menu (there is only…
Denziloe
  • 7,473
  • 3
  • 24
  • 34
59
votes
15 answers

Jupyter command `jupyter-lab` not found

I have tried to install jupyter lab on my Kubuntu machine. If I install jupyter lab with 'pip3 install jupyter jupyterlab' the command 'jupyter notebook' works completly fine. But if I try to run 'jupyter lab' every time I get the…
CacherJoe100
  • 591
  • 1
  • 4
  • 3
54
votes
2 answers

JupyterLab: keyboard shortcut to toggle next/previous tabs in JupyterLab

Does anyone know if there is a keyboard shortcut to toggle next / previous tabs in JupyterLab (if there is, how to do it)? or if we can customize keyboard shortcuts? EDIT This youtube shows how you can customize your keyboard shortcuts in…
wi3o
  • 1,467
  • 3
  • 17
  • 29
54
votes
4 answers

Reconnecting remote Jupyter Notebook and get current cell output

I'm currently training a neural network on a remote server, using jupyter notebook. I set it up with the following: tmux jupyter-notebook --no-browser --port=5000 connecting to jupyter notebook with a browser and executing the cell for the training…
TheDude
  • 1,205
  • 2
  • 13
  • 21
1
2 3
99 100