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

JupyterLab autocomplete without tab

Pressing tab each time you want to automcomplete seems time-consuming. Ideally, you just type in the first couple of letters and you get a drop down list without pressing tab. In Jupyter notebook, there were some extensions that you could install to…
maverick
  • 357
  • 1
  • 2
  • 8
20
votes
2 answers

How to split and merge cells in JupyterLab

In JupyterLab, given the following code cell, how may it be split into multiple cells? Likewise, given the following cells, how may they be combined into a single cell?
Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
20
votes
1 answer

Jupyter Notebook extensions within Jupyter Lab

Is it possible to use notebook extensions (nbextensions) within Jupyter Lab? I think my extensions are enabled... I call jupyter nbextension enable on them beforehand. But I don't see them in notebooks from within Jupyter Lab.
william_grisaitis
  • 5,170
  • 3
  • 33
  • 40
19
votes
2 answers

How to enable code folding in Jupyter Lab

Running JupyterLab version 3.0.0 and would like to enable code folding (collapse classes, functions etc in Python). I have followed the instructions in this Jupyter Lab github post: Under Settings / Text Editor, I have these User preferences (right…
CarlosE
  • 858
  • 2
  • 11
  • 22
19
votes
3 answers

Set SHAPE_RESTORE_SHX config option to YES to restore or create it

I am not able to read the shape file. It says no such working directory. !pip install sentinelsat !pip install geopandas !pip install folium from sentinelsat import SentinelAPI user = '****' password = '****' api = SentinelAPI(user, password,…
19
votes
3 answers

List running instances of jupyter lab

Jupyter notebook comes with the useful command: jupyter notebook list which outputs all the running server instances for the current user. Besides it lists the relevant access tokens. Jupyter lab seems not to have this feature. Cruising through…
Acorbe
  • 8,367
  • 5
  • 37
  • 66
18
votes
4 answers

How to use FileUpload widget in jupyter lab?

I want to use the FileUpload widget in jupyter lab. I have the following lines of code in my notebook cell: uploader = widgets.FileUpload() uploader In jupyter notebook, the output of the cell is a clickable button that I can use to upload a file.…
Statistic Dean
  • 4,861
  • 7
  • 22
  • 46
18
votes
6 answers

Jupyter Lab freezes the computer when out of RAM - how to prevent it?

I have recently started using Jupyter Lab and my problem is that I work with quite large datasets (usually the dataset itself is approx. 1/4 of my computer RAM). After few transformations, saved as new Python objects, I tend to run out of memory.…
jakes
  • 1,964
  • 3
  • 18
  • 50
18
votes
4 answers

How to change the background color of a single cell in a jupyter notebook / jupyterlab?

I design a notebook so that variables that could be changed by the user are grouped into distinct cells throughout the notebook. I would like to highlight those cells with a different background color so that it is obvious to the user where the…
P-Gn
  • 23,115
  • 9
  • 87
  • 104
18
votes
2 answers

Best way to create/distribute a stand alone app based on Jupyter Notebook/JupterLab?

I've built a fairly complex graphical user interface for a data analysis pipeline that a neuroscience lab is using. I built it with Python in a Jupyter Notebook using ipywidgets and various interactive plotting libraries such as bokeh. It's…
18
votes
3 answers

Enable word wrap in JupyterLab code editor

I would like to enable word wrap for the code cells in jupyterlab, but do not manage to find how. Already tried: File --> Settings --> Text Editor --> User Overrides:{"lineWrap": true}, which toggles the greyed-out "word wrap" in the "Editor" menu,…
Borislav Aymaliev
  • 803
  • 2
  • 9
  • 20
17
votes
5 answers

Plotly express is not rendered in jupyter lab

The following code does not render in Jupyter lab: %matplotlib widget import plotly.express as px import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(0,100,size=(5, 4)), columns=list('ABCD')) px.bar(df, x='A', y='B') I…
Mth Clv
  • 625
  • 1
  • 7
  • 20
17
votes
7 answers

No module named ipykernel_launcher

I'm trying to register a pyenv-virtual env as a jupiter lab kernel on MacOs. I have this working on ubuntu but I'm running into issues on my MacBook. I followed the instructions here which creates the following kernel spec file. { "argv":…
David Waterworth
  • 2,214
  • 1
  • 21
  • 41
17
votes
2 answers

How to download a .py file from Jupyter lab notebook?

In jupyter notebook, there is a provision to download a notebook as .py file. In jupyter lab, there is an option called export as which does not contain an option to download a .py file. Is there any workaround for this, instead of copying the…
17
votes
3 answers

How to "find and replace" text?

I see there is such command in the Edit menu tab, but is dim grey, both if I am inside a code tab and if I am outside it, as you can see in the attached screenshot. How can I perform such operation?
Vincenzo Lavorini
  • 1,884
  • 2
  • 15
  • 26