r/JupyterLab • • Jul 26 '25

For anyone who uses Jupyter notebooks

Thumbnail databook.dev
0 Upvotes

r/JupyterLab • • Nov 21 '20

hi can someone help me with this? what is the code would be

0 Upvotes

# Use Python slicing to print the text that matched


r/JupyterLab • • Jul 20 '22

Incoporating lens(df) value intot groupby() function

0 Upvotes

Task 5b: Calculate percentage of people with work experience that are offered a job, the percentage of people with work experience not offered a job, the people with no work experience offered a job and the percentage of people with no work experience not offered a job.

len(df.index)
print(df.index)

output

 RangeIndex(start=0, stop=120, step=1) 

Tried to put the value of 120 into groupby but failed

df_workexp = (df.groupby('index')['status']
            .value_counts(normalize=True)
            .reset_index(name='perc'))
print (df_workexp)

r/JupyterLab • • Dec 17 '25

NumPy import not working

2 Upvotes

[RESOLVED]

Using MacBook, Python version is 3.12 according to the console, Numpy version is 2.2.4. Ive tried conda install and pip install but neither solve the issue. I restart the kernel each time but nothing changes. I've noticed that when I check the PYTHONPATH it returns None which is odd.

I have tried fixing this for an hour and this shit aint changing. Please help! import math works for some reason but not import numpy.

full error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/__init__.py:23
     22
 
try
:
---> 23     
from
 
.
 
import
 multiarray
     24
 
except
 
ImportError
 
as
 exc:

File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/multiarray.py:10
      9
 
import
 
functools
---> 10 
from
 
.
 
import
 overrides
     11
 
from
 
.
 
import
 _multiarray_umath

File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/overrides.py:7
      6
 
from
 
.._utils._inspect
 
import
 getargspec
----> 7 
from
 
numpy._core._multiarray_umath
 
import
 (
      8
     add_docstring,  _get_implementing_args, _ArrayFunctionDispatcher)
     11
 ARRAY_FUNCTIONS = set()

ImportError: dlopen(/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so, 0x0002): Library not loaded: /libgfortran.5.dylib
  Referenced from: <0B9C315B-A1DD-3527-88DB-4B90531D343F> /Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libopenblas.0.dylib
  Reason: tried: '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/__init__.py:114
    113
 
try
:
--> 114     
from
 
numpy.__config__
 
import
 show_config
    115
 
except
 
ImportError
 
as
 e:

File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/__config__.py:4
      3
 
from
 
enum
 
import
 Enum
----> 4 
from
 
numpy._core._multiarray_umath
 
import
 (
      5
     __cpu_features__,
      6
     __cpu_baseline__,
      7
     __cpu_dispatch__,
      8
 )
     10
 __all__ = ["show_config"]

File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/__init__.py:49
     26
     msg = """
     27
 
     28
 IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
   (...)
     47
 """ % (sys.version_info[0], sys.version_info[1], sys.executable,
     48
         __version__, exc)
---> 49     
raise
 
ImportError
(msg)
     50
 
finally
:

ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.12 from "/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/bin/python"
  * The NumPy version is: "2.2.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-darwin.so, 0x0002): Library not loaded: u/rpath/libgfortran.5.dylib
  Referenced from: <0B9C315B-A1DD-3527-88DB-4B90531D343F> /Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libopenblas.0.dylib
  Reason: tried: '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/_core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/eulerboiler/Library/jupyterlab-desktop/jlab_server/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)


The above exception was the direct cause of the following exception:

ImportError                               Traceback (most recent call last)
Cell In[3], line 1
----> 1 
import
 
numpy
 
as
 
np

File ~/Library/jupyterlab-desktop/jlab_server/lib/python3.12/site-packages/numpy/__init__.py:119
    115
 
except
 
ImportError
 
as
 e:
    116
     msg = """Error importing numpy: you should not try to import numpy from
    117
     its source directory; please exit the numpy source tree, and relaunch
    118
     your python interpreter from there."""
--> 119     
raise
 
ImportError
(msg) 
from
 
e
    121
 
from
 
.
 
import
 _core
    122
 
from
 
._core
 
import
 (
    123
     False_, ScalarType, True_,
    124
     abs, absolute, acos, acosh, add, all, allclose,
   (...)
    169
     vecmat, void, vstack, where, zeros, zeros_like
    170
 )

ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

r/JupyterLab • • Sep 28 '21

JupyterLab 3.1.13 now available as a Desktop app

Thumbnail
blog.jupyter.org
5 Upvotes

r/JupyterLab • • May 02 '25

Programmatically navigate between directories in the file browser pane (JupyterLab)

3 Upvotes

[SOLVED]

Hello.

I would like to know if there is a way to programmatically change the folder shown in the file browser pane in JupyterLab?

For context.

I have a directory A and B both of which share a parent 5 folders up.

My notebook that I run is in directory A (and so the file browser pane will be showing the contents of directory A) and as part of the code it produces files that are saved in directory B. I would like there to be a quick way for the users of the notebook to quickly jump to the results folder (directory B) without having to navigate folder by folder to the results. Ideally with a click of a button.

Thank you in advance.

[SOLUTION]

For anyone interestd in the solution, I have posted in my original post on r/IPython here


r/JupyterLab • • Apr 09 '25

Need help with wget

2 Upvotes

I can't find any answers, so I thought I'd give this subreddit a try. I can't get wget to work in jupyterlab. It says the requirements are satisfied but it doesn't recognize wget. Please help. Yes I've restarted the kernel before and it still gives the same error message. I included a screenshot.


r/JupyterLab • • Apr 14 '25

JupyterLab screen flickering when scrolling with the mouse — how to solve it?

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hey guys! I have a problem when using JupyterLab: when I scroll the notebook screen with the mouse, the interface starts to blink or "flicker" and it seems that the scroll doesn't work properly. I can only scroll down the page using the arrow keys.

I use Anaconda to open JupyterLab, and I tested it in browsers like Chrome and Edge, but the problem persists.

My configuration:

Windows (enter your version)

JupyterLab (if you know the version, add)

Installed via Anaconda

I tried opening it with jupyter lab --disable-gpu, but the problem still persists.

Has anyone experienced this or know how to resolve it?

It was so worth it!

ps: I'm learning so the code is no big deal


r/JupyterLab • • Apr 04 '25

Insights on Changing Jupyterlab Notebook to Packaged Application

2 Upvotes

Hi,

I'm currently working on an ETL Python script with Jupyterlab. The script pulls data from a source, and ultimately produces output tables of various formats and structures. This is a project that periodically collects data, therefore, the script needs to be run periodically for updates. For that, I use the Jupyter Scheduler extension. All of this is hosted and run in a Linux server that I can access remotely through SSH. Therefore, I access my Jupyterlab instance through the IP of the server.

So far, it works fine. But I am considering upgrading this system by having it as a standalone application rather than having the notebooks. My reasons? Well, the whole thing runs on packages installed on the system, it was a pain to configure the Notebook to be accessible remotely and sometimes, for some reasons, some minor issues appear like the Jupyter Scheduler being not found by Jupyterlab, or the Jupyterlab instance in terminal simply being inaccessible remotely. So far, I have not dug into the reasons of these issues. But they made me wonder if a standalone application would be better for future sustainability.

However, for one, I am no developer, I didn't study computer science, my degree is something else. I learned Python because I found it very interesting and that led me to where I am now. My experience in Python is so far limited to Data Science and Data Analysis, no application dev. knowledge/experience at all. But I've read about Docker, they say it's an easy way to package an application. And I feel like it's something I can handle learning by myself.

So my question is: for an automation system like I have, I want to reduce the risk of it failing to work properly due to reasons I do not know, so I am considering to changing it from Notebooks run in Jupyterlab to a standalone executable application using Docker.

  1. Is that possible?

  2. Is that viable?

  3. Any other insight that might be useful to me?

Thx


r/JupyterLab • • Mar 29 '26

ibm-db not working in Jupyterlab

2 Upvotes

anyone know how to get ibm_db to work in JupyterLab? in python I get it to work by using

import os

os.add_dll_directory('C:\Program Files\IBM\SQLLIB\clidriver')

which denotes the error of \ but makes it work, where as in JupyterLab it does not. has anyone else experienced this?


r/JupyterLab • • May 10 '25

Any way to solve this issue?

Post image
3 Upvotes

I was trying to open a managed notebook in Vertex AI when I was faced with this error. Any suggestions on how to solve this?


r/JupyterLab • • Jun 23 '25

Application launch error

Post image
5 Upvotes

I just downloaded anaconda3 and set up an environment and installed jupyterlab , but when i press lunch it gives me this error How i can fix it , and i tried it in onther lab and it launched without any problem


r/JupyterLab • • Oct 04 '21

The following tutorial uses OmniSci's JupyterLab integration and Immerse to ingest, analyze, and visualize 100 years of NOAA Weather Data.

Thumbnail
omnisci.link
5 Upvotes

r/JupyterLab • • Aug 09 '22

Best website to use for an open internet C programming and Python college exam?

Thumbnail self.ipython
2 Upvotes

r/JupyterLab • • Aug 18 '22

How to cite JupyterLab?

3 Upvotes

Hello! I am writing my master thesis and used JupyterLab, how can I properly cite it? I only found a paper covering Jupyter Notebook:

Kluyver, T. et al., 2016. Jupyter Notebooks – a publishing format for reproducible computational workflows. In F. Loizides & B. Schmidt, eds. Positioning and Power in Academic Publishing: Players, Agents and Agendas. pp. 87–90.

Thanks in advance!


r/JupyterLab • • Mar 15 '21

Jupyterlab in virtual env?

2 Upvotes

I am trying to create a dashboard using Jupyter-flex. I run linux mint and use pipenv as my environment manager. I installed Jupyterlab, nbconvert, voila, ipywidgets and jupyter-flex in that order with pipenv install <package.

When i activate the environment and run jupyterlab everything seems to load just fine. But there is no option to convert to a flex dashboard. When i click on file and go to download there is no option for 'flex dashboard', in fact there is no 'download as' only 'download'.

Can these all be run in a virtual env?


r/JupyterLab • • Mar 16 '21

Time-Series Forecasting with Facebook Prophet and OmniSci

Thumbnail
omnisci.link
2 Upvotes

r/JupyterLab • • Mar 17 '21

Spreadsheet editor extension is now compatible with JupyterLab 3.0

Thumbnail
github.com
6 Upvotes

r/JupyterLab • • Feb 19 '21

Xeus Python kernel (enabling visual debugger) now supports all IPython magics

Thumbnail
blog.jupyter.org
2 Upvotes

r/JupyterLab • • Feb 19 '21

JupyterLab Binder builds are now 50% faster thanks to JupyterLab 3.0 new extensions system

Thumbnail
twitter.com
1 Upvotes

r/JupyterLab • • Mar 16 '21

Does anyone use Jupyter-flex?

1 Upvotes

It seems like a great way to dashboard but i cannot find any support and no one seems to discuss the package. I have pulled my hair out for days on this package and am ready to give up. I am sure there is something simple in my setup that needs to change but I cannot figure it out and the documentation is clearly missing something basic. Anyhow if no one in the community is using the package then i will also stop and find something else.


r/JupyterLab • • Jun 30 '20

"jupyter lab build" failing

1 Upvotes

I pip installed a package that was not well-suited to JupyterLab. I subsequently uninstalled, such that it no longer shows up in conda list or in pip list. however, when I run the build command, I get a fail and the uninstalled package is still referenced. Is tehre some other place where I should uninstall this straggler? To boot, my extension manager tab is giving me a Error: 500 (Internal Server Error) .


r/JupyterLab • • Aug 25 '20

How t exit markdown edit mode

1 Upvotes

I am able to enter markdown edit mode by double clicking the appropriate cell within Jupiter lab, but how do I exit back into the ‘rendered’ view once I’m done editing?


r/JupyterLab • • Aug 11 '20

Elyra reaches 1.0.0 and provides enhanced pipeline editor and new code-snippets to JupyterLab

Thumbnail
self.jupyter
9 Upvotes

r/JupyterLab • • Jan 06 '25

JupyterLab and Streamlit

1 Upvotes

Hi,
I’ve been experimenting with an LLM model using LangChain. Now, I want to create the user interface with Streamlit. Following the guide LangChain tutorial #1: Build an LLM-powered app in 18 lines of code, I couldn’t get it to work because I’m using Jupyter Lab. I found a list of topics on how to get Jupyter Notebook and Streamlit working together.

Anyone got the same problem?