2,683 questions
0
votes
1
answer
22
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
1
answer
34
views
How to prevent markdown headings in a Jupyter Notebook (VSCode or JupyterLab) from appearing in the Table of Contents (TOC)
In Jupyter Notebooks (both in VS Code and JupyterLab), every markdown heading (like #, ##, etc.) automatically appears in the Table of Contents (TOC) or Outline view.
Sometimes, I want to include ...
0
votes
0
answers
43
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 ...
1
vote
0
answers
67
views
Sagemaker Unified Studio overriding delta lake configuration to iceberg on EMR
I am connecting to an EMR cluster through SageMaker Unified Studio(JupyterLab).
My EMR cluster is configured with Delta Lake support, and I have the following Spark properties set on the cluster:
...
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 ...
0
votes
0
answers
92
views
How to get full React error messages instead of minified errors when using Turbo build system?
I' m using Turbo to manage my jupyterlab monorepo and run/build my React app. When I run the app or build with Turbo, I see minified React errors like:
Error: Minified React error #185; visit
https://...
3
votes
0
answers
140
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 ...
0
votes
0
answers
45
views
ipyaggrid cell style conditional coloring
ipyaggrid.__version__ = 0.5.4
I want to color code some cells in a column called name if the cell value equals 'xyz'.
The code below is suggested by ChatGPT but it doesn't work. ipyaggrid simply ...
1
vote
1
answer
89
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
64
views
How to load image data with JupyterLab in UBK-RAP
I have buied a project which contains fundus images in UK-Biobank. And I want to load them in UKB-RAP with JupyterLab so that I can use the images to do my work. How to achieve it?
For example, I know ...
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
37
views
Disable automatic code suggestion in jupyter for magic and path
I am using JupyterLab. My question is identical to the one asked here:
Disable Automatic Code Suggestion in Jupyter for magic and path
However, the person in that post was ultimately satisfied with ...
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
0
answers
28
views
Unable to create markdown links to other local jupyter notebooks
I've been setting up some API documentation using jupyter notebook markdown cells which reference sections in another notebook, and am running into issues.
In this example, let's say I have two files ...
0
votes
1
answer
453
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
1
answer
64
views
How can I make JupyterLab open in a specific Firefox profile?
I'm on a Windows machine with admin access, using Anaconda Navigator. I was successfully able to open JupyterLab in Firefox (not my default browser) by adding c.SeverApp.browser = '"C:\\Program ...
1
vote
0
answers
223
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
2
answers
97
views
Bad display of LaTeX formula in a markdown cell in Jupyter-lab
I have a markdown cell holding some latex code with a math formula.
I get a somewhat disappointing resulting display, in particular the summation and infinity symbols looking rather small.
OTOH, if I ...
0
votes
0
answers
19
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 ...
0
votes
0
answers
49
views
Error with a VPython code that works at glowscript.org, but output error in Jupyerlab
I am a newbie in VPython and I try to run very simple code from examples.
The following code works perfectly at glowscript.org :
Web VPython 3.2
coaster = curve(vector(-3,0,0),vector(-3,0,0))
theta = ...
2
votes
1
answer
194
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
1
answer
736
views
Show hidden files in Jupyter Hub
I have just deployed a Jupyter Hub in Ubuntu 22.04 using The Littlest Jupyter Hub.
I want to show hidden files in File Explorer (and edit them later). Typical sample: .envfile
I have set in Settings/...
1
vote
0
answers
42
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
0
answers
79
views
python/Jupyter-lab: How to use built-in JSON visualization functionality for a dataclass
IPython/Jupyter has built-in functionality to visualise JSON structures as an interactive tree where you can expand and collapse nodes. I like using it for lists and dictionaries, but now I want to ...
0
votes
1
answer
90
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
1
answer
171
views
How to make Chrome as the default browser for Anaconda Jupyter Notebook
I am new to Jupyter Notebooks (JN). I have installed JN using Anaconda. Whenever I launch it, it opens in MS Edge. However, I want it to use Chrome as the default browser. I followed this link to do ...
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
0
answers
18
views
Background execution in Jupyter
mcq_helper.py code
import ipywidgets as widgets
from IPython.display import display
import sys
output = widgets.Output()
if __name__ == '__main__':
question = sys.argv[1]
options = sys.argv[...
0
votes
1
answer
110
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
1
answer
869
views
ipywidgets not displaying in JupyterLab & Jupyter Notebook: 'Error displaying widget'
I'm trying to use ipywidgets in JupyterLab, but I'm getting the error:
Error displaying widget
Here's a minimal example that reproduces the issue:
import ipywidgets as widgets
from IPython.display ...
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 ...
1
vote
0
answers
255
views
How to use jupyturtle in JupyterLab to generate different polygons
I have written a function using jupyturtle in JupyterLab that creates a triangle and then used that to create different polygons with triangles inside of them.
It works well with hexagons correct ...
2
votes
0
answers
76
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
23
views
How to set Table of Contents to show by default when starting JupyterLab desktop
When I start JupyterLab desktop app, and open a notebook, I always want the table of contents to show. I have asked ChatGPT, but the solutions do not work. I am not able to edit the user settings. ...
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
1
answer
470
views
Jupyter Themes (`jt`) not applying on Windows (Anaconda) — Theme missing and no changes after refresh
After a fresh Anaconda installation on Windows, I installed jupyterthemes via conda-forge and attempted to set the onedork theme using jt -t onedork. While the command generates a custom.css file in %...
0
votes
0
answers
147
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
41
views
Jupyter Notebook Global Kernel Selection for Visual Studio Code
As described by the jupyter extension and in the description on how to run notebooks on vscode, one would have to click on the "select kernel" button on the top right of the notebook and ...
0
votes
0
answers
121
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
1
answer
238
views
Jupyter Command Not Recognized in MacOS
I am attempting to install Jupyter on my MacBook Air (OS Sonoma 14.7) but am having difficulties. Below I will list the criteria of my situation and also reference several related questions and point ...
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
2
answers
31
views
Suggestion of sub files type for calculation
I use jupyter lab for my project. I use mostly pandas, numpy, statsmodel. The number of code lines now is very long and becoming hard to manage. I want to leverage by creating sub-files for ...
0
votes
1
answer
84
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
17
views
Jupyter-lab how to set cell style
As shown in the picture, I have seen this effect elsewhere, but I don't know how to achieve this effect? What plug-ins need to be installed? Or what configuration to enable, please tell me
As shown in ...
0
votes
0
answers
73
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
0
answers
45
views
Cell execution time with ipython-autotime
I am using ipython-autotime with jupyterlab notebook, I am not able to see cell execution time when there is an error in code of cell to be run.
I tried printing pre_run_cell and post_run_cell events ...
0
votes
1
answer
186
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
40
views
jupyterlab 3 randomly does not run cells
I just updated my jupyterlab to Version 3.2.9.
Ever since, my run commands are randomly ignored. Sometimes, the execution seems to start and a star appears, but nothing happens, instead, the next cell ...
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 ...
2
votes
0
answers
24
views
How to setup griddb-python on JupyterLab
I'm trying to install griddb-python on my JupyterLab notebook and running into error. I'm trying to connect to my griddb running in Docker as part of WSL/Ubuntu.
%pip install griddb-python
Collecting ...