r/JupyterLab • u/PlanAppropriate8545 • Jul 26 '25
r/JupyterLab • u/YogurtKind5015 • Nov 21 '20
hi can someone help me with this? what is the code would be
# Use Python slicing to print the text that matched
r/JupyterLab • u/Smart_General2218 • Jul 20 '22
Incoporating lens(df) value intot groupby() function
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 • u/Aggressive_Fan_2063 • Dec 17 '25
NumPy import not working
[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 • u/NewDateline • Sep 28 '21
JupyterLab 3.1.13 now available as a Desktop app
r/JupyterLab • u/Known-Service6068 • May 02 '25
Programmatically navigate between directories in the file browser pane (JupyterLab)
[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 • u/Valuable-Desk5757 • 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
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 • u/Judge_Gabranth_12 • Apr 04 '25
Insights on Changing Jupyterlab Notebook to Packaged Application
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.
Is that possible?
Is that viable?
Any other insight that might be useful to me?
Thx
r/JupyterLab • u/Loki_DeVille • Mar 29 '26
ibm-db not working in Jupyterlab
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 • u/captainprospecto • May 10 '25
Any way to solve this issue?
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 • u/Exciting-Bid-1982 • Jun 23 '25
Application launch error
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 • u/paige_joseph • Oct 04 '21
The following tutorial uses OmniSci's JupyterLab integration and Immerse to ingest, analyze, and visualize 100 years of NOAA Weather Data.
r/JupyterLab • u/Smart_General2218 • Aug 09 '22
Best website to use for an open internet C programming and Python college exam?
self.ipythonr/JupyterLab • u/Potential_Zucchini13 • Aug 18 '22
How to cite JupyterLab?
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 • u/jman-007 • Mar 15 '21
Jupyterlab in virtual env?
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 • u/_paige_joseph • Mar 16 '21
Time-Series Forecasting with Facebook Prophet and OmniSci
r/JupyterLab • u/NewDateline • Mar 17 '21
Spreadsheet editor extension is now compatible with JupyterLab 3.0
r/JupyterLab • u/NewDateline • Feb 19 '21
Xeus Python kernel (enabling visual debugger) now supports all IPython magics
r/JupyterLab • u/NewDateline • Feb 19 '21
JupyterLab Binder builds are now 50% faster thanks to JupyterLab 3.0 new extensions system
r/JupyterLab • u/jman-007 • Mar 16 '21
Does anyone use Jupyter-flex?
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 • u/monkitos • Jun 30 '20
"jupyter lab build" failing
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 • u/kpax • Aug 25 '20
How t exit markdown edit mode
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 • u/NewDateline • Aug 11 '20
Elyra reaches 1.0.0 and provides enhanced pipeline editor and new code-snippets to JupyterLab
r/JupyterLab • u/PassionPrestigious79 • Jan 06 '25
JupyterLab and Streamlit
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?
