2,685 questions
0
votes
1
answer
20
views
Embed table of contents in Jupyter notebook cell for export
I used to use an extension in classic mode to embed my table of contents such that when I export the notebook as a PDF, the TOC remains linked to the internal sections. In Jupyter Lab, I see the TOC ...
0
votes
0
answers
38
views
runcell is not displayed in jupyter lab after pip install
I follow the guide on runcell download to install runcell for my jupyter lab with pip install runcell.
But after pip install, i cannot see the runcell extension AI Agent panel in my jupyter, even if i ...
0
votes
0
answers
36
views
Can I show both File Browser and Table of Contents in the same sidebar in JupyterLab?
I'm using JupyterLab 4.4.5 and want to view both the File Browser and the Table of Contents at the same time in the sidebar. I don't want to move one to open two sidebars, I want both visible in the ...
3
votes
0
answers
138
views
Memory usage accumulates in simple loop until PC crashes
I have recently experienced major crashes on my computer after executing some Python code of mine. My PC would freeze and sometimes show a bluescreen after a few rounds of a seemingly unproblematic ...
1
vote
1
answer
87
views
Why is Dash ignoring the HOST environment variable?
I have this minimal Dash app:
import os
import dash
from dash import html
app = dash.Dash(__name__)
app.layout = html.Div("Hello Dash!")
print(f'{os.environ["HOST"]=}')
app.run(...
0
votes
0
answers
89
views
Jupyter breaks most recent Mayavi 4.8.3
For me, Jupyter(-lab) fails to work with the most recent version of Mayavi 4.8.3.
Other Python interpreter software (like Spyder, ipython, ...) works well.
For me, this can be boiled down to a bare-...
0
votes
0
answers
24
views
"ModuleNotFoundError: No module named 'seaborn'" in JupyterLab after installing seaborn
After running %pip install seaborn and restarting the kernel, I get that error when I run import seaborn. I've tried closing and reopening jupyterlab. I'm running this notebook on Windows. I'm using ...
0
votes
1
answer
437
views
can't import llama-cpp-python
I plan to install llama-cpp-python. However, I get error about "Could not find module 'D:\anaconda\Lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). "
I have Microsoft ...
1
vote
0
answers
218
views
yfinance - can't download stock data in JupyterLab, but it works on Google Colab
Good morning, evening and night!
I'm having an issue when trying to download stock data using the yfinance tool in JupyterLab. It will work perfectly in Google Colab, as I'm using the following simple ...
0
votes
0
answers
15
views
jlab not working from the terminal to lunch JupyterLab desktop app
The JupyterLab desktop app GitHub repository at https://github.com/jupyterlab/jupyterlab-desktop?tab=readme-ov-file says that the app can be launched by the command jlab from the terminal, but I get a ...
2
votes
1
answer
191
views
My jupyter Notebook interface is missing "Widget" section while other people have it
"I'm following the same steps as my instructor, but my screen appears different compared to theirs. I've attached an image showing both screens. What could be causing this discrepancy, and how ...
1
vote
0
answers
36
views
Jupyterlab excecuting cells that don't exist (as far as I know)
When I execute a cell in jupyterlab, it says that it's executing 2 cells (shown in this photo). I don't know what the second cell is. The first cell will finish, but jupyter will say that it's busy ...
0
votes
1
answer
87
views
Matplotlib not rendering chart in Jupyter (Conda)
I just installed the most recent version of Anaconda (24.11.3). I'm trying to do a simple line chart using matplotlib, but am just getting the text output instead of the actual chart.
I tried this ...
0
votes
0
answers
37
views
how to execute notebook in different namespace
Let say I have two notebooks:
nba.ipynb
nbb.ipynb
In notebook A, I try to run: %run -n nbB.ipynb so that the two notebooks are running in two different namespace. However, after execute %run -n nbB....
0
votes
1
answer
100
views
Programmatically change cell in JupyterLab
I'm looking for a way to programatically change the contents of a jupyterlab cell after it has been run as a way to "lock" it.
For my specific use-case, my cell essentially looks like
...
0
votes
0
answers
68
views
Newbie trying to launch browser from new environment using anacoda's training video: ERR_ACCESS_DENIED
I'm new and going through the training in "getting started with anaconda" training series on their learning portal. I'm on a Microsoft 10 laptop.
I'm currently working on Create a simple ...
2
votes
0
answers
75
views
Call another jupyter notebook, passing variables and receiving variables
Let say I have two jupyter notebook files called: main and sub
Here are my needs:
Call and run sub from main
Each notebook has its own variables space. For example, if x=1 in main, but x=2 in sub ...
0
votes
0
answers
33
views
VSCode does not show jupyter lab connection command
Related to this question and these docs, I don't see a Specify Jupyter Server for Connections command in my command palete (Ctrl+E and enter ">").
My usecase: having a remote machine ...
0
votes
0
answers
139
views
Why does VSCode port forwarding work without explicit Docker port forwarding, while SSH tunneling fails?
I’m trying to access Jupyter Lab running inside a Docker container in host server, from my local machine via SSH tunneling. The connection works fine between the local and host and the host and ...
0
votes
0
answers
119
views
Jupyterlab occasionally hangs during simple execution with excessive CPU and memory consumption
This is seems to be a Heisenbug so I can't give a reproducible example but I can describe my setup and symptoms.
The symptoms are simple, occasionally (once every few days, though they seem to cluster)...
0
votes
0
answers
53
views
Plotly express histogram does not show up
I am using the below code to display histogram but it does not seems to show any fig. I have no idea why it does not work.
fig = px.histogram(
df,
x = 'age',
...
0
votes
1
answer
75
views
Apply style to PANDAS table and print with truncation (Jupyter Lab/Notebook)
Is there a way to apply a style to a pandas table in Jupyter Lab and then print it while keeping the table truncation functionality?
I have large tables where both the columns and the rows are ...
0
votes
0
answers
72
views
A JavaScript error occured in the main process: Unexpected end of JSON input
I’m reaching out for advice on resolving the issue shown in the attached image regarding the error message:
A JavaScript error occurred in the main process
Unexpected end of JSON input
The error ...
0
votes
1
answer
184
views
How do you add min and max values to plotly.graph_objects.Box if I'm passing Precomputed Quartiles?
I'm using code from the example official documentation https://plotly.com/python/box-plots/ -> Box Plot With Precomputed Quartiles. In such cases, plotly using q1 for mix and q3 for max.
import ...
0
votes
0
answers
77
views
Jupyter Lab is inputting blank lines in the output for each suppressed line of code
I am using an octave kernel in Jupyter Labs. I have noticed a problem, where when I use a semicolon to suppress code from appearing in the output, it adds a blank line instead. This can make my ...