2,682 questions
0
votes
1
answer
130
views
Python Version Mismatch in Jupyter Notebook Environment
I am experiencing a discrepancy between the Python version reported in the Jupyter notebook startup banner and the version shown when I query python --version within the notebook. The startup banner ...
0
votes
0
answers
106
views
OSError(22, 'Invalid argument') - cannot open any `.ipynb` and `.py` file
I am unable to open any of my past Jupyernotebook or python files I have and I get this error for them:
Unreadable Notebook: C:\Users\[mypath]\main\main.ipynb OSError(22, 'Invalid argument')
[mypath] ...
1
vote
1
answer
371
views
setting JupyterLab password in DOcker Compose
I'm having a problem running JupyterLab locally, and setting the password via Docker Compose file. I can get it working via a docker run command, but not via Compose
This also works fine with the ...
2
votes
2
answers
2k
views
OverflowError When Setting Up gym_super_mario_bros Environment in Python on JupyterLab
I’ve been following a tutorial on YouTube (https://youtu.be/2eeYqJ0uBKE?si=Vx6gybqKh3ApSfXV) to build a Super Mario AI model using Python. However, when setting up the gym_super_mario_bros environment,...
0
votes
0
answers
186
views
Run collapsed sections in Jupyter Notebook
In Jupyter Notebook (version 7.0.8), is it possible to run all the cells hidden under a specific section, without expanding it?
See the following example
I have selected the header, which is in in ...
0
votes
3
answers
155
views
Micro level changes to Jupyter Lab theme
I know I can change the theme in Jupyter Lab to make it light or dark. And that I can change the background color of a single cell. But I want to make some further micro level changes to the overall ...
-1
votes
1
answer
79
views
I was installing Jupyter notebook and got a message in Command Prompt maybe something related to file path. Help me fix this please? [duplicate]
"'jupyter' is not recognized as an internal or external command, operable program or batch file."
This is the error message I get whenever I try to run Jupyter notebook.
I earlier got a ...
0
votes
1
answer
208
views
500:Internal server error when opening JupyterLab (4.0.11) via Anaconda (2.6.1)
I have been using JupyterLab w/ Anaconda for a while now and have not run into this issue before, but now when I open JupyterLab (4.0.11) from Anaconda, it throws an error "500 : Internal Server ...
1
vote
0
answers
149
views
When I use Jupyterlab in google chrome to write code, It Raise "SyntaxError: invaild non-printable character U+00A0", but safari has not this problem
When I use Jupyter lab in chrome browser, it always autoadd special character in my code resulting a SyntaxError
SyntaxError: invalid non-printable character U+00A0
When I delete this special ...
0
votes
1
answer
50
views
Any tips as to how to use github's repositories in your python code?
I am trying to utilize YOLOv8's software seen on their github, but I don't know how to implant it in jupyter labs.
I am trying to see what lines of code I should implement in python 3.x to get this to ...
1
vote
1
answer
70
views
How can I add custom xtics for a python gnuplotlib plot?
I want to add custom tick labels on the x-axis using the python gnuplotlib.
I have tried (using jupyterlab):
import numpy as np
import gnuplotlib as gp
xtics_positions = [0, 2, 4, 6, 8]
xtics_labels =...
6
votes
0
answers
224
views
Using nbconvert to export a jupyterlab notebook to html with toc?
I'm currently using
jupyterlab 4.1.3
nbconvert 7.16.2
and would like to export a notebook to html with toc.
In earlier versions of nbconvert (v5.x.x) I know we could do
jupyter nbconvert --to ...
0
votes
0
answers
299
views
Serving static files with jupyterlab
I create a PDF file in a notebook and save it to disk.
When I try to download it via a link (<a href="{pdf_file}">Click here to download: {pdf_file}</a>) in the notebook I get a ...
0
votes
0
answers
63
views
Cannot build jupyterlab extension
I run command jupyter lab build --dev-build=False --minimize=False in conda prompt to build jupyter lab but failed.
jupyter lab version: 2.2.6
Actually, I want to use ipywidgets extension of jupyter ...
1
vote
1
answer
3k
views
!pip install or pip install inside jupyter notebook
It is possible to pip install a Python package inside a code cell in a Jupyter Notebook (I am running Jupyter lab). In the past the command was !pip install (as it was a system command), but for a ...
0
votes
1
answer
144
views
Jupyter NoteBook 7.0.0 cannot connect to kernel - Kernel is disconnected - web socket errors on Chrome's console
I'm using Ubuntu 22.04 with python3 version 3.10.6 and with these installed packages:
pip3 list | grep 'jupyter'
jupyter 1.0.0
jupyter_client 8.6.2
jupyter-console ...
0
votes
2
answers
76
views
Can't connect to Jupyter lab of my Apache/Sedona container via localhost
I'm working on Fink ( an astro-physicist-big-data project). My job is to modify Apache:Sedona code in order to manage 3D data (either geometries and algorithms).
I use a remote server's VM based on ...
0
votes
0
answers
142
views
JupyterLab conflicting with Notebook
this is my first question here so please be patient with me. I am having to use legacy, v6, Jupyter Notebook because it seems that the dependencies with JupyterLab are causing issues (ie. the UX won't ...
0
votes
1
answer
627
views
Is it possible to work on the same Notebook, at the same time, from VScode and JupyterLab?
work: read / write / run the .ipynb file
I have searched around and couldn't find anything conclusive.
1
vote
0
answers
430
views
How to execute code Cells or notebooks from python code?
i am not a python devloper but i can fugre bits and peices out...
as a multi devloper im faced with code in all formats :: so i often forget a lot!! so i need help to be able to execute code on a ...
0
votes
1
answer
202
views
Trouble Accessing Jupyter Etc. through Anaconda
Disclaimer: I want to make clear I am a total laymen when it comes to this. I just search answers to my problem, use chatgpt when needed etc. So if you know the answer, please explain as if you are ...
0
votes
1
answer
60
views
Unordered list in Markdown overflows in Jupyter Notebook
I have an unordered list in my markdown and a little bit of text overflows.code
After I execute it looks like this,
output
How do I solve this?
I thought this might be a browser issue but then I ...
0
votes
0
answers
85
views
How to stop tag from showing in Jupyter Lab TOC
I am not sure what happened, but previously the table of contents for my ipynb files did not show the tags in the table of contents, meaning that if the following markdown cell was in the notebook:
# ...
1
vote
0
answers
269
views
How to use Tab instead of Enter to accept a suggestion in Jupyter LSP Code Completion?
I am a new user who recently switched to JupyterLab. I’ve noticed that when I use autocomplete in JupyterLab running in the browser, the Language Server Protocol (LSP) defaults to using Enter as the ...
0
votes
1
answer
455
views
Align ipywidgets inside two HBoxes python
I would like to align widgets inside two HBoxes horizontally.
import ipywidgets as widgets
but1 = widgets.RadioButtons(options=["foo", "bar"])
but2 = widgets.RadioButtons(options=[&...
1
vote
1
answer
240
views
Shortcut for "run cell" for Jupyter Lab on MacBook
I'm using JupyterLab on a MacBook. For some reason, the default keyboard shortcut for running a cell is "Control + Enter", but I want to change it to "Command + Enter". I found a ...
0
votes
1
answer
97
views
Jupyterlab: How to change the spacing between cell-toolbar buttons
The Cell Toolbar settings allow you to add/remove items, being a "spacer" one of them. However it doesn't seem to have any effect.
Is there another way?
0
votes
0
answers
165
views
Automatic scroll on jupyterlab 4
I've switched to Jupyterlab 4, but I'm noticing some pretty annoying behavior at times. When I launch a cell that gives me a rather long output, jupyter automatically scrolls to the end of the output, ...
1
vote
1
answer
34
views
set the edge attribute of complete graph in python
I generate a complete graph with arbitrary nodes. Each edge has two attributes where the second one is the function of the first one. (for example, when the first one is x, the second one is 1/x).
How ...
0
votes
2
answers
461
views
Shift + Tab tooltips not showing in JupyterLab 4.2.0 / Python 3.12.3 (pyenv) on Ubuntu 24
SHIFT + TAB tooltips are not showing for me in my fresh Jupyterlab install.
Platform: Python 3.12.3 (via pyenv) on Ubuntu 24.04.
Here's the output of $ jupyter --version:
Selected Jupyter core ...
0
votes
1
answer
478
views
Upgraded to cudnn 9.1.1, but Python only recognizes 8.5.0
I work on Jupyter Lab, managed by PyCharm. I've recently upgraded my cuda to 12.4:
which nvcc
yields:
/usr/local/cuda-12.4/bin/nvcc
I've also upgraded cudnn to 9.1.1, using the x86_64 ubuntu 2204 ...
2
votes
0
answers
553
views
Shift tab isn't showing docstring anymore
I did a clean install of Ubuntu 23 and Jupyter Lab 4.2.0.
Previously when I created a notebook with, say, pd.read_csv() put my cursor between the brackets and pressed shift+tab a docstring would ...
0
votes
1
answer
329
views
jupyter lab: opening a ipynb file from another ipynb file using %run, same directory already
In jupyter notebook, I am trying to open a ipynb file create.ipynb in which I made a class called Animals, from another ipynb file Coursera_test.ipynb. I have already checked, they are in the same ...
0
votes
0
answers
73
views
Automatic line warp does not work for code cell in Jupyter Lab 4.2.0
I want to automatically wrap my code cell in Jupyter lab at 80 character. In Advanced Settings Editor, for the following block:
"codeCellConfig": {
"autoClosingBrackets": [80],
...
1
vote
3
answers
9k
views
What is the password for jovyan user in jupyter lab docker container?
I have pulled the jupyter/datascience-notebook:latest image from docker hub and launched an instance container of it. I logged into the container through bash. Now i want to restart the server itself ...
0
votes
1
answer
51
views
Supress output of library loading information in R when using Jupyter Lab
I am using the following code to load two R packages in Jupyter Lab:
I want to supress any output from this code cell. I tried invisible(library(sommer)), which did not work. In addition, invisible() ...
1
vote
1
answer
119
views
Jupyter Notebook, Jupyter Lab - How do I fix autocomplete suggestion window not being displayed properly (size issue)?
bug
bug demo.gif
Jupyter Notebook and Jupyter Lab autocomplete suggestion window gets too small once I almost type it out and the window doesn't let me resize as well.
I tried restarting Jupyter ...
1
vote
1
answer
118
views
Connection to rethinkdb refused in docker compose
I am new to rethinkdb and docker compose and have been trying things. But I encountered a problem when trying to run a small data migration project using docker compose. To be more specific, I ran a ...
0
votes
2
answers
230
views
How to make the unit show up at the result after square root calculation using handcalcs and forallpeople Python libraries?
I am using forallpeople Python library within handcalcs Python library. After performing square root calculation, the unit is not showing up at the calculation result:
import handcalcs.render
from ...
1
vote
1
answer
236
views
Is this a bug in forallpeople library or am I doing the arithmetic in a wrong way when using handcalcs library?
I am performing hand calculations using handcalcs python library. I have just done the following test calculation using unit-aware calculation with the help of the forallpeople python library:
import ...
0
votes
0
answers
26
views
Why does the python version not match the banner display in juypterlab's console?
In my shell, I create a new python 3.9.19 ipykernel environment:
$ ~/local/python/3.9/bin/python3 -m ipykernel install --user --name test_3dot9
Installed kernelspec test_3dot9 in /home/user/.local/...
1
vote
0
answers
212
views
Jupyter Lab 4.x and ipywidgets
I am currently working in JupyterLab version 4.1.6 and having problems with sliders from ipywidgets (version 8.1.2). I wanted to display 2D slices from a 3D image, where the slider would control the ...
2
votes
1
answer
5k
views
How to correctly activate micromamba environment inside Apptainer container automatically?
I am trying to build a micromamba based container, that automatically activates the correct environment to run an application (here jupyter-lab).
Apptainer.def
Bootstrap: docker
From: mambaorg/...
5
votes
0
answers
825
views
Disable all warnings/logging messages from Keras/Tensorflow in JupyterLab
I'm trying to suppress all the warning/logging messages that come up when I use the fit method in Keras. For reference I'm using WSL2/Ubuntu with a Docker image to use the GPU on Windows 11. Here are ...
1
vote
1
answer
79
views
How to inverse a dictionary where one of the values has multiple values/items in it?
I am currently trying to figure out how to inverse a dictionary, but for some reason the inversed dictionary is cutting out the last key:value pair. The value has 2 items in it instead of one, which ...
1
vote
2
answers
187
views
Jupyter lab snippets appear to be read-only
I am using python 3.12.2 on Jupyter lab 4.1.6.
I activated Jupyter lab snippets using pip as explained in the documentation:
pip install jupyterlab-code-snippets
jupyter lab clean
jupyter lab build
...
3
votes
3
answers
14k
views
ModuleNotFoundError: No module named 'rpds.rpds'
I have been running jupyter lab in my virtual environment with no problem. But I installed another program which probably caused issues with launching jupyter lab this morning. I have tried to update ...
0
votes
1
answer
112
views
Unable to get jupyterlab-git extension working in TLJH (The Littlest Jupyter Hub)
We are currently in the process of automating AWS EC2 image builds that have TLJH installed along with some basic extensions. I’m using an Ansible playbook to handle the TLJH installation. When the ...
0
votes
0
answers
74
views
Change width of output box in Jupyter Notebook
I was wondering if it is possibile to change the width of a Jupyter Notebook output box.
Here is my example code:
import pandas as pd
# Maak een DataFrame met je gegevens
data = {
'...
0
votes
2
answers
107
views
Why is my Neo4j Server now 10x slower since switching to WSL and then back to Windows?
I changed dbms.default_listen_address in C:\neo4j\conf\neo4j.conf to 192.168.1.5
Got a Jupyter server on WSL to access it via neo4j://192.168.1.5:7687
Shut WSL down
Changed dbms.default_listen_address ...