Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

I can't open Jupyter with command showing the given error

C:\Users\USER>jupyter notebook [I 2024-09-09 11:00:35.491 ServerApp] jupyter_lsp | extension was successfully linked. [I 2024-09-09 11:00:35.507 ServerApp] jupyter_server_terminals | extension was ...
Brian Parker's user avatar
0 votes
0 answers
15 views

How to get working dependencies in jupyter notebook/lab using rise (reveal.js) + ipycanvas + ipywidgets

I simple run this code in a jupyter notebook/lab cell: from ipycanvas import Canvas from ipywidgets import Button from IPython.display import display WIDTH = 200 # px HEIGHT = 200 # px # Create a ...
user2853437's user avatar
0 votes
1 answer
18 views

Jupyter Lab throws "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" from workspaces handler

I'm on Windows. Have been using Jupyter Lab for a while with no problems. Very recently, every time I launched Jupyter, it errored out as such: [W 2024-09-08 02:02:06.730 ServerApp] 500 GET /lab/api/...
Shay's user avatar
  • 597
2 votes
1 answer
42 views

vscode jupyter notebook kernel crashes when running polars code

In VSCode, Created a new python project with a new Virtual environment. pip installed the polars package and executed a sample polars code from https://docs.pola.rs/user-guide/getting-started/. ...
zikzakjack's user avatar
  • 1,042
3 votes
1 answer
53 views

Pandas 2.0.3? Problems keeping format when file is saved in .json or .csv format

Here is some random code. # create df import pandas as pd df2 = pd.DataFrame({'var1':['1_0','1_0','1_0','1_0','1_0'], 'var2':['X','y','a','a','a']}) df2.to_json('df2.json') # ...
josepmaria's user avatar
0 votes
0 answers
35 views

I'm trying to analyze behavioral patterns in a data frame based on at least five conditions

This is a data frame I'm working on: The frame is constructed of 36 numerical columns and 50 rows of data. The rows are numbered from the index of '0'. The project is seeking to analyze sale ...
Bee-kay's user avatar
1 vote
0 answers
15 views

Jupyter (lab and notebook) indentation invisible and unusable [closed]

Notebook version 7.2.2 The white space is invisible in the editor - spaces and tabs are invisible. How do I set the spaces to be seen as dots . and the tabs to be seen as arrows ? The indentation ...
betacrash's user avatar
0 votes
2 answers
36 views

Pytest-like verbose asserts in Jupyter Lab

I'm using Jupyter lab and sometimes I want to run some assertions on my data. For example, that all the folds have at least 10 test items. Nevertheless, when the assert fails, I have to modify the ...
David Davó's user avatar
0 votes
0 answers
35 views

multiprocessing module not working in general on my computer

I would like to use multiprocessing to run different functions at the same time, by creating two different processes and starting them. However, multiprocessing does not appear to work as expected on ...
dkjackyu's user avatar
0 votes
0 answers
46 views

Jupyter and Spyder fail to launch after last ubuntu update

JUPYTER After the last ubuntu (22.04) update, jupyter fails to launch with the following error: Unable to open document “file:///home/user1/.local/share/jupyter/runtime/jpserver-6731-open.html”. File ...
betacrash's user avatar
0 votes
0 answers
11 views

How can I custom a Jupyter Lab extension's settings UI

When I create a project about Jupyter Lab extension. I can define settings properties at the schema JSON file. But the string property alway show as a input component. Can I define a property field ...
Mars Liu's user avatar
0 votes
0 answers
26 views

How to pass Jupyter Lab password in the command line?

I have set a password for jupyter lab such that every time I start and open it in the browser, it asks for a password before loading the interface. I used jupyter lab password, and my hashed password ...
Guda Guda's user avatar
0 votes
0 answers
17 views

Unusual error when using DTreeviz / Graphviz in Voila Jupyter

I am using voila to create a basic web app for my jupyter notebook. Using the example code for "dtreeviz" which displays a decision tree: from sklearn.datasets import load_iris from sklearn....
KL Web Design's user avatar
0 votes
0 answers
25 views

global not seen outside zmq asynch cell in Jupyter lab notebook

I want to access the global variable most_recent_message anywhere in the notebook but it’s not working. The cell just is active (*) but nothing shows up. The messages are coming into the loop and they ...
theakson's user avatar
  • 526
0 votes
0 answers
38 views

Jupyter kernel in vscode crashes after installing numpyro

I have created an python environment using conda (python 3.12) which includes geopandas and numpyro. The minute I install numpyro using either pip or conda/mamba (I tried both), My jupyter kernel ...
imantha's user avatar
  • 3,726
0 votes
0 answers
35 views

All texts in Jupyter R plot in get scrambled if Cairo package is installed

When I plot in a Jupyter + R session, whether it is a Notebook or R console, base R or ggplot2 plots, texts all get scrambled like this: sessionInfo: R version 4.3.3 (2024-02-29) Platform: x86_64-...
Jun Jiang's user avatar
0 votes
0 answers
26 views

Jupyter Notebook debugger: Avoid modifying jupyter environment variables after debugging session ends

I am using jupyter in VSC locally, and I noticed that when we debug a cell, once it finishes and the debugger shuts down all the variable's values got updated in the jupyter's notebook's environment, ...
Eugenio.Gastelum96's user avatar
-1 votes
1 answer
25 views

cython undeclared name not builtin: m

I am building a model with pysb and I am trying to make simulations. To avoid them to be slow I have installed cython but I get an error message. This is the code I enter to import my model This is ...
francis didier TSHIANYI MWANA 's user avatar
0 votes
0 answers
21 views

'In' and 'Out' missing in Jupyter [duplicate]

Just using Jupyter for the first time. I have noticed that the the abbreviation 'In' (for input) and 'Out' (for Output) is missing to the left of the code line (please see picture). I am only getting ...
slolay's user avatar
  • 1
-1 votes
0 answers
24 views

Remove Dotted Red Line in Jupyter Notebook

I'm using Jupyter Notebook and this vertical dotted red line has appeared, I want to remove it, but I can't, this line persists in all the scripts I open, can anyone help? I restarted the machine and ...
Gabriel Fernandes's user avatar
0 votes
1 answer
25 views

Why is my IPYNB file opened as IPY File (raw JSON) in Jupyter Notebook?

When I open an IPYNB file (downloaded from internet) in Jupyter Notebook then it displays as a raw JSON file instead of the usual interactive notebook view. it is too confusing and frustrating. Anyone ...
muel's user avatar
  • 73
0 votes
0 answers
21 views

Why is my tkinter window crashing when running in a different thread for use in a Jupyter Notebook?

I heard tkinter is not threadsave, but nevertheless I don't understand the behaviour of this code or how I should do it without using threads. I'm currently developing a simple tkinter window which ...
andyde's user avatar
  • 11
0 votes
0 answers
40 views

Why won't Jupyter Notebook (or Lab) open in Anaconda Navigator or cmd

I've tried opening Jupyter notebook through anaconda navigator, as well as in the anaconda cmd.exe command line. Anaconda Navigator will show that blue loading bar in the bottom right corner but ...
Rachael Seidel's user avatar
0 votes
1 answer
60 views

Code for Google Colab will not transfer over to Jupyter Notebook

I am working on trying to work with BigDFT, which is a library dedicated to computational chemistry. The course is done through Google Colab, but I try to use Jupyter Notebook instead, due to the ...
Matt Frost's user avatar
0 votes
0 answers
14 views

How to get a traceback from a depickled function

I am using dill to pickle a function and execute it on a remote environment, but when there is an exception on the remote instance, I can't seem to obtain a traceback. Here is a MRE: # on the client: ...
quant's user avatar
  • 22.6k
0 votes
2 answers
37 views

How can I get more than records in Jupyter?

My query records in Clickhouse has about 60m records but when I run in Jupyter it loads only 5000 records. How can I have all records in Jupyter? I need all data of the query result and then make a ...
Pardis Bagheri's user avatar
0 votes
1 answer
31 views

ProcessPoolExecutor fails

I have a simple setup to test parallel execution, but it fails no matter what I've tried. I'm working in a Jupyter Notebook. Here is a model example: from concurrent.futures import ProcessPoolExecutor ...
Alex F's user avatar
  • 915
1 vote
1 answer
64 views

Why does "val = yield x" run on its own in a separate output cell with val as x?

This is the code i wrote: def genFunc(): while True: val = yield True print(val) myGen = genFunc() next(myGen) next(myGen) myGen.send("Sending a message!") next(myGen) ...
Minimo's user avatar
  • 11
3 votes
1 answer
23 views

How to export dask HTML high level graph to disk

There is a way to generate a HTML high level graph in a jupyter notebook as shown in dasks' documentation: https://docs.dask.org/en/stable/graphviz.html#high-level-graph-html-representation Taking the ...
Caleb's user avatar
  • 4,031
0 votes
0 answers
26 views

"error: octal escape value \760 outside of range 0-0o377 at position 28" when installing packages using conda in jupyter notebook

For example, if I execute conda install numpy following error occurs: --------------------------------------------------------------------------- error Traceback ...
Y H's user avatar
  • 1
2 votes
1 answer
35 views

How to run cell and stay on it in a Jupyter Notebook on VS code?

I am using Jupyter Motebook on a Mac (silicon). I would like to run a cell and stay on it (keep working on it / debugging etc.). But It keeps jumping to the next cell (or creating a new cell below). ...
ArieAI's user avatar
  • 474
0 votes
0 answers
32 views

Issues with importing custom modules in jupyter notebook

So let's say we have a file structure as follows, #Note: Not the actual directory structure, but a similar one root../ tests../ src../ __init__.py utils../ __init__.py data.py ...
Sanjith Kumar's user avatar
0 votes
0 answers
24 views

My command prompt stops responding after i try and open jupyter lab/ jupyter notebook through it, jupyter opens leaving prompt frozen

So i was following a youtube tutorial and needed to set my virtual environment for jupyter in my command prompt and when i write jupyter lab my command prompt stops responding and doesn't allow me to ...
GoogleMeet's user avatar
0 votes
0 answers
26 views

Installing jupyterlab through pip install, warnings on path

When I tried launching JupyterLab from Anaconda Navigator, for some reason it opens up VS Code with html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="...
Julia Coggins's user avatar
0 votes
1 answer
28 views

Jupyter Notebook pass python list of strings to bash cell

Within a Jupiter Notebook (Python kernel) I would like to pass a list of strings to a %%bash cell to use in a for loop. I can do the following: message = 'hello' messages = ['hello', 'there'] %%bash -...
Martin David Grunnill's user avatar
0 votes
1 answer
38 views

Where is it specified the path to look for kernel.json, to select the jupyter kernel in anaconda?

I am launching an Anconda prompt from a Windows shortcut. Its target is %windir%\System32\cmd.exe "/K" %PYTHONDIR%\Scripts\activate.bat root, with PYTHONDIR=C:\Users\User1\Anaconda\. At the ...
sancho.s ReinstateMonicaCellio's user avatar
0 votes
0 answers
16 views

Why does importing a module cause my kernel to die? (Jupyter)

I'm trying to run some code in Jupyter Lab/Notebook (I have tried both) and every time it gets to the 'import speasy as spz' command, I get an error telling me that my kernel appears to have died and ...
Eleanor Ruler's user avatar
1 vote
0 answers
24 views

Follow changes with the mouse cursor when pressing ctrl + z/Z (undo/redo) in JupyterLab

In most of the text editors that I used (e.g., Notepad++), the mouse cursor follows the positions of the changes when undoing/redoing text pieces. Is there a way to have this effect in JupyterLab, as ...
TobiR's user avatar
  • 153
0 votes
0 answers
42 views

ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+ when starting jupyter lab

When running jupyter lab, I get the following error Traceback (most recent call last): File "/home/user/.local/bin/jupyter-lab", line 5, in <module> from jupyterlab.labapp import ...
max_max_mir's user avatar
  • 1,666
0 votes
0 answers
17 views

Pycharm loses connection to Jupyter notebook kernel

I have Mac with M3 Pro chip and am trying to setup PyCharm to work with Jupyter. However after I press run All Cells I have noticed that my Variables disappear from the Variables: panel. And after I ...
Atanas Aleksandrov's user avatar
0 votes
0 answers
17 views

How can I import an .xlsx file in jupyter?

I need to import Database.xlsx in jupyter and be able to work on it with sql commands. I'm using this code: !pip install pandas==1.3.3 import pandas as pd from pyspark.sql import SparkSession # ...
Fabrizio Ferrari's user avatar
0 votes
0 answers
49 views

How do I change the path of my installed Miniforge

So I installed miniforge3 to my root folder in Linux, now I'm getting some permissions error Error Starting Kernel [Errno 13] Permission denied: '/root/miniforge3/envs/xeus/bin//xcpp' But instead ...
Seqaeon's user avatar
0 votes
1 answer
55 views

Cannot load .keras model

I have trained a KERAS model (EfficientNetB5) on an image dataset, and have saved the new model with new layers into a .keras file. However, I keep getting an input error. # Load efficientnet model ...
h2y's user avatar
  • 1
0 votes
2 answers
48 views

Inserting a column into a csv that pulls from the name of the file in python

I'm trying to insert a column of "StatementDate" into a csv, where the date is in the title of the csv. This is dynamic and will change week to week. The formatting of the title is the same, ...
Jacob Lindsey's user avatar
0 votes
1 answer
25 views

Calling module from jupyter notebook inside of poetry project reults in 'No module named' error

I'm working on a module with poetry with a directory structure like ./ /my_module (module files) /tests test_thing.py /jupyter demo.ipynb In the test files and jupyter ...
learnvst's user avatar
  • 16k
0 votes
0 answers
19 views

Jupyter Hub Docker How do I log into the image?

Trying to install JupyterHub with the following link: https://jupyterhub.readthedocs.io/en/latest/tutorial/quickstart-docker.html Can't seem to login tried following the steps of launching a bash ...
Gunslinger's user avatar
  • 1,509
-4 votes
1 answer
87 views

Pip cannot find recent versions of package when trying to install in Docker container

I am trying to run a Docker container in a Jupyter Notebook within AWS Sagemaker. The DockerFile is from a template that worked until I added one additional RUN command with some ML packages I wanted ...
Eric Golub's user avatar
0 votes
0 answers
9 views

Shortcuts not working in Spyder notebook, why?

I just installed the notebook extension in spyder. I have used it for months and never had problems. Now, all of a sudden, the Jupyter notebook shortcuts (e.g., dd for deleting a cell) do not work ...
shenflow's user avatar
  • 335
0 votes
1 answer
25 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 ...
Kenenbek Arzymatov's user avatar
1 vote
1 answer
29 views

How to run jupyterlab when asdf is installed?

Suppose that asdf is installed and we are using python 3.8.19. How to run "jupyter lab" as the regular command jupyter-lab notebook should be referenced in PATH and not working. On the other ...
OmG's user avatar
  • 18.7k

1
2 3 4 5
162