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
53
votes
7 answers

plot.ly offline mode in jupyter lab not displaying plots

According to the documentation, offline mode with plot.ly in Jupyter is supposed to work after calling: from plotly.offline import download_plotlyjs, init_notebook_mode, iplot init_notebook_mode(connected=True) Now I am trying to show the following…
clstaudt
  • 21,436
  • 45
  • 156
  • 239
51
votes
6 answers

Jupyter Notebooks not displaying progress bars

I'm trying to get a progress bar going in Jupyter notebooks. This is a new computer and what I normally do doesn't seem to work: from tqdm import tqdm_notebook example_iter = [1,2,3,4,5] for rec in tqdm_notebook(example_iter): …
J.Doe
  • 749
  • 1
  • 5
  • 9
51
votes
2 answers

How to apply theme to jupyter lab

I tried to apply dark theme by putting a *.css file in the ~/.jupyter/custom/ directory (like here). This changes a theme for a normal jupyter notebook. But no affect on the jupyter lab appearance. I also tried to install a theme using…
queezz
  • 1,832
  • 2
  • 20
  • 26
44
votes
5 answers

printing bold, colored, etc., text in ipython qtconsole

I'm trying to get text to display as bold, or in colors, or possibly in italics, in ipython's qtconsole. I found this link: How do I print bold text in Python?, and used the first and second answers, but in qtconsole, only the underlining option…
43
votes
2 answers

How to run a single line or selected code in a Jupyter Notebook or JupyterLab cell?

In both JupyterLab and Jupyter Notebook you can execute a cell using ctrl + Enter: Code: print('line 1') print('line 2') print('line 3') Cell and output: But how can you run only line 2? Or even a selection of lines within a cell without running…
vestland
  • 55,229
  • 37
  • 187
  • 305
43
votes
2 answers

JupyterLab: How to save a figure from the notebook

I'm trying the new JupyterLab and am having trouble saving figures. Using vanilla Jupyter notebooks, I can two-fingers click (using macOS, Safari or Chrome) and I get a browser menu that allows me to copy or save the figure. In JupyterLab, this…
foglerit
  • 7,792
  • 8
  • 44
  • 64
43
votes
5 answers

Run parts of a ipython notebook in a loop / with different input parameter

I have written a ipython notebook, which analyses a dataset. Now I want to use this code to loop over different datasets. The code is split into about 50 cells (including comments, markdown explanations,...). Is there a way to run parts of a…
Jan Katins
  • 2,219
  • 1
  • 25
  • 35
41
votes
7 answers

Module not found: Error can't resolve 'child_process', how to fix?

I'm trying to create a JupyterLab extension, it uses typescript. I've successfully added the package "@types/node" allowing me to use packages such as 'require('http')'. But as soon as I try to use child process, using 'require("child_process")' I…
OneTwo
  • 2,291
  • 6
  • 33
  • 55
41
votes
6 answers

Show code line numbers in JupyterLab

In Jupyter notebook, cntrl+ m L toggles code line numbers in current cell but how to bring the code line numbers in JupyterLab? Referred a similar issue opened in github
38
votes
4 answers

Automatic cell execution timing in jupyter lab

In jupyter notebook, I can configure an automatic cell timing with nbextensions, the result is like so: How can I do this in jupyter lab? I didn't find any extensions that do a similar thing. Obs.: I know that a similar result can be achieved with…
Danilo Filippo
  • 762
  • 1
  • 6
  • 12
38
votes
6 answers

Jupyter lab shortcuts

I've been using Jupyter Notebooks for a couple of years now. I've just headed over to Jupyter Lab, but I've found the lack of shortcuts to be a burden. For example, I noticed that I can search for commands in the left hand palette. But I can't seem…
Daniel Severo
  • 1,768
  • 2
  • 15
  • 22
34
votes
4 answers

Completion in IPython (jupyter) does now work (unexpected keyword argument 'column')

I'm using jupyter notebook, and it works fine, but when I press TAB, the auto-completion doesn't work. I already checked all the similar cases in StackOverflow, but none of the solutions worked for me. I have also tried to do "pip upgrade" to:…
Tomer
  • 353
  • 1
  • 3
  • 5
33
votes
14 answers

plotly.offline.iplot gives a large blank field as its output in Jupyter Notebook/Lab

I am trying to create a Sankey chart in a Jupyter notebook, basing my code on the first example shown here. I ended up with this, which I can run without getting any errors: import numpy as npy import pandas as pd import plotly as…
eirikdaude
  • 3,106
  • 6
  • 25
  • 50
32
votes
4 answers

Can I use github-copilot strait on jupyter-lab/notebook?

I do a lot of stuff over a remote jupyter server. I've been using vscode to run notebooks on those servers because it was the easiest way I could find to develop while using copilot, but it's become rather cumbersome and was hoping for a simpler…
aaportel
  • 471
  • 1
  • 3
  • 6
32
votes
6 answers

How to move Jupyter notebook cells up/down using keyboard shortcut?

Anyone knows keyboard shortcut to move cells up or down in Jupyter notebook? Cannot find the shortcut, any clues?
Burhan
  • 343
  • 1
  • 3
  • 7