Questions tagged [jupyter-notebook]

The Jupyter Notebook is a web application that provides a frontend to many different languages and interactive shells such as IPython. Jupyter Notebook, unlike its predecessor IPython Notebook, supports many different languages and interactive shells in addition to Python and IPython. DO NOT use this tag on questions regarding code which merely happens to be written using Jupyter Notebooks, use the appropriate language tag instead, e.g. [python], [r].

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

How to adjust the right hand toc depth in Jupyter Notebook

I am building a HTML page with jupyter-book build . --all und want to view every single headline I wrote before in a Jupyter Notebook with #, ##, ### and so on. Is it possible to adjust the right hand ...
John Goofy's user avatar
  • 1,340
0 votes
0 answers
4 views

Legends of Interactive plot with jupyter Notebook

I am plotting GDP of countries using interactive plotting. I actually managed almost all I wanted. But I would like also to add legends however I am failing to do so. I got the data from https://...
Erdem's user avatar
  • 125
0 votes
0 answers
11 views

Jupyter notebook giving syntax error to codes

Greeting everyone Please what could be responsible for Jupyter notebook outputting Name error messages to my lines of codes it had correctly run just some moments ago? Please someone should assist me. ...
MikeO's user avatar
  • 1
0 votes
0 answers
4 views

how can I install matplotlib in Jupyter Notebook?

I have alredy installed matplotlib on my venv in Pycharm. I tried to run it in Jupyter Notebook and them I got noticement No module named 'matplotlib' I also tried to run !pip install matplotlib at ...
bepebdepd's user avatar
0 votes
0 answers
12 views

Installed Package on JupyterHub, now disk quota is exceeded and can’t remove it

I’m using Jupyter Hub with Python at my university, and I accidentally installed packages torch and torchvision onto the Jupyter hub. Now the disk quota is exceeded (Errno 122) and when I used ‘pip ...
Tyler Matson's user avatar
0 votes
0 answers
10 views

UnsupportedOperation: fileno curses.setupterm() , please help to fix error

This is the code which when i run gives error UnsupportedOperation: fileno Setup the optimizer to optimize our ViT model parameters using hyperparameters. Train the model and save the training results ...
morningt's user avatar
0 votes
1 answer
19 views

Jupyter Notebook Display cells going up when writing new line of code

When I'm writing codes on jupyter notebook and I press enter, the cells above the current cell go up instead of the cells below the current cell going down. Seems to be a display issue. I might have ...
DisplayName007's user avatar
0 votes
0 answers
11 views

Jupyter Lab not working: the cell runs forever and python is not detected

Jupyter Lab is not working. I open the terminal from a Mac and run: MBPdiAlessandro:~ alessandro$ jupyter-lab Then Jupyter opens through Safari. I close all the active kernels. I make a new Python 3 ...
A.J.'s user avatar
  • 113
0 votes
2 answers
57 views

How to pass the file path command line arguments to check code is working fine or not in Python jupyter notebook [duplicate]

I have written the below code using args and added the path variable but I am not able to test this code because I am unable to run my script. How to pass the file path command line arguments to check ...
Gagandeep's user avatar
-1 votes
0 answers
21 views

ImportError: cannot import name ‘StratifiedShuffledSplit’ from ‘sklearn.model_selection’ [closed]

I cannot import name ‘StratifiedShuffledSplit’ from ‘sklearn.model_selection’. I’m facing problem with this part of the code on Jupyter Notebook: CODE from sklearn.model_selection import ...
ardra1111 's user avatar
-3 votes
2 answers
47 views

Passing a set as an indexer is not supported. Use a list instead [closed]

Could you please someone advice me why my function 'X = xdf[selected_features] ' does not work. I use Windows 11 and python 3.12. I get this error when I run (Passing a set as an indexer is not ...
Dani1991's user avatar
0 votes
0 answers
11 views

python Runtimeerror doesn't reappear after rerunning a cell

I've been trying to program my own linear regression with gradient descents. While testing different learning rates I encounter with a behavior I consider a bit strange. When I am running a following ...
Zoriana's user avatar
1 vote
0 answers
21 views

I couln't install Jupyter using conda command

I try setup a conda envirnment using miniconda but I couldn't setup I need a solution to this, I search trough internet , but i didn't get solution yet. 1st step (base) C:\Users\Nabee\data_science\ml&...
NBL's user avatar
  • 11
1 vote
1 answer
38 views

Joining 2 separate excel based 1 condition with python

I have these two frames df1 birthdate ceremony_number 9/30/1895 1st 7/23/1884 1st 3/29/1889 2nd 4/10/1868 3rd 4/8/1892 2nd df2 index dates 1 1929-05-16 2 1930-04-03 3 1930-11-05 I thing is ...
victor_sanger's user avatar
0 votes
0 answers
9 views

Jupyterhub notebook image shared python libraries

I manage a jupyterhub server with about 50 users. Each user gets a base notebook image that starts up when they login. We are having difficult time managing this image, because the users insist that ...
Myles Merrell's user avatar
0 votes
0 answers
20 views

getElementById between two cells google colaboratory

I have this cell: Cell 1 from IPython import display, HTML display(HTML( ''' <img src="value_to_replace" id="yeah"> ''' )) And this Cell 2 %%...
Muhammad Ikhwan Perwira's user avatar
0 votes
1 answer
23 views

matplotlib 3D plot Z label cut off

When using matplotlib in jupyter notebook in VS code the Z-label of my 3D plot is cut off. I also used the example code from the official matplotlib documentation: import matplotlib.pyplot as plt ...
Tanne's user avatar
  • 59
0 votes
0 answers
28 views

Singular Matrix error when implementing Burgers equation

I'm working on implementing Burger's equation to model the propagation of pressure wave's and I am coming across an error (Singular Matrix error), specifically: 23 J = eval(jac)(x,n,fnon,F,*...
Nexi's user avatar
  • 7
0 votes
0 answers
13 views

ModuleNotFoundError: No module named 'qiskit.util'

ModuleNotFoundError Traceback (most recent call last) Cell In[19], line 2 ----> 2 from qiskit.optimization import QuadraticProgram File ~.conda\envs\TesisQiskit\lib\site-...
JeyDiDiEi's user avatar
0 votes
1 answer
11 views

In a Jupyter Notebook server's Terminal, how do you activate a Kernel

Jupyter Notebook servers have an integrated way to open a Terminal: but then in the Terminal, how do I activate a Python Kernel as it opens with the system's default Python activated?
AlexM's user avatar
  • 1,060
1 vote
0 answers
11 views

Untoggle *all* legend items in an Altair chart in a Jupyter notebook

I'm trying to create a chart with Altair in a Jupyter notebook. It's basically a line-chart of various currency values over time. I included my code below. I can toggle currencies using the legend, ...
luukburger's user avatar
0 votes
1 answer
56 views

VSCode ipython cells are not clearing their output on running

I've only encountered this in VSCode: why I want to see only one, last output of the cell. There are no such problem if cell contains print(): with print Version: 1.84.2 (system setup) Commit: ...
XpomAE's user avatar
  • 1
-3 votes
0 answers
22 views

Python codes - probability of purchase outcome of the customers in the Score data [closed]

these are the csv files: bzan6357_insurance_3_SCORE.csv, bzan6357_insurance_3_TRAINING.csv And this is the description of the project: Project Requirement Due date: see syllabus section Tentative ...
user23007142's user avatar
-3 votes
0 answers
31 views

ı have taken a error message when ı study computer vision [closed]

enter image description here I have taken this error message. I study about computer vision on jupyter notebook and ı wanted to try lane detection.when I upload the video, ı have taken this error. ı ...
Cemal Gürsel Kar's user avatar
0 votes
0 answers
34 views

CondaValueError: could not parse 'abseil-cpp 20211102.0 h6b3803e_1 conda-forge' in: requirements.txt

I'm trying to run a github repository for the first time, but it has a lot of interdependent files (.py, .ipynb, requirements.txt and .json). Repo link So firstly I've tried to clone the repository on ...
Dhanush Pamulapati's user avatar
0 votes
1 answer
34 views

Implementing a parallel evaluation queue for Jupyter notebook

I want to execute long running functions in parallel within a Jupyter notebook, without blocking the notebook itself. However, I also want to add completely unrelated jobs to the queue at any time, ...
goweon's user avatar
  • 1,151
0 votes
0 answers
20 views

Jupyter Notebook (VS Code) - Create a for loop that runs a cell like a function. The cell is using the Cantera library

I would like to create a for loop that evaluates multiple inputs for a Cantera Reactor network and gives me the results. The Cantera network runs as a for loop, evaluates a time period, and generates ...
John Hatfield's user avatar
-2 votes
0 answers
39 views

Why does python keep bringing up errors when I am trying to UMAP-analyze data and yet I am following a tutorial word by word? [closed]

How do I fix the error below? As you can see, the error that Jupyter notebooks brought when I attempted to run this code: embedding = umap.UMAP(random_state = 42).fit_transform(data) Jupyter contends ...
Nicholas Asiimwe's user avatar
0 votes
0 answers
10 views

I'm using choropleth in plotly, but my map is not showing after plotting, only the bars show

This is my lines of code: data=dict(type='choropleth', locations=df1['State Abv'], colorscale='rainbow', reversescale=True, z=df1['Voting-Age Population (VAP)'], ...
Nelly's user avatar
  • 1
0 votes
0 answers
33 views

Error installing package pip install orange3==3.30

I would like to install pip install orange3==3.30 in jupyter notebook (On Windows 11 and python 3.12). I get this error when I run !pip install orange3==3.30 code. × Getting requirements to build ...
Dani1991's user avatar
0 votes
0 answers
18 views

Can I assign a specific environment/docker image to my Kaggle notebook?

I want to create a new Kaggle notebook that would be relying on the same environment than an older Kaggle notebook I have. Why ? Because I want to use the commit & save function allowing you to ...
Mayeul sgc's user avatar
  • 1,974
0 votes
0 answers
6 views

How to connect Apple GPU to Jupyter Notebook?

Currently, I am on Macbook pro M2 pro system. I want to set my jupyter notebook runtime on GPU cores rather than CPU cores. Since, I am working on ML Projects (using scikit-learn). ANy ides how to set ...
Alok Tondrang's user avatar
0 votes
0 answers
15 views

Scala interpreter won't start on jupyter notebook

Trying to setup Spark Scala on jupyter notebook, using this guide: https://community.databricks.com/t5/data-engineering/how-can-we-run-scala-in-a-jupyter-notebook/td-p/17752 Installing went ok, but ...
Brahim Khalil Abid's user avatar
-4 votes
0 answers
35 views

I've an indentation problem and when I try to solve I've another problem that I understand [closed]

I've an indentation error in this code, but when I solve that I've another error and I can't understand. raw=pd.DataFrame() comp_count = company_count(query) data_acq = 0 # data_acq while data_acq <...
Salvador Macías's user avatar
0 votes
0 answers
26 views

After i install a library in my jupyter notebook, I have an error when importing

I am currently in a virtual machine of my faculty that I accessed through ssh, and inside the machine I started a jupyter notebook server. When using jupyter notebook, whenever I try to install a ...
Gil Ramos's user avatar
0 votes
2 answers
40 views

spaCy displacy output using anvil.works server

I am attempting to display entities using spaCy's displacy feature. The output of my render is being shown in my Jupyter Notebook code cell with my anvil.server.wait_forever() code. Here is an example ...
seika's user avatar
  • 3
0 votes
0 answers
32 views

Conda env package not being used in Jupyter

I can't get Jupyter to use the environment I activated I have created an environment in conda. After activating the env using conda prompt, and using conda list, I see my pandas version installed is 1....
jinkeatlim's user avatar
0 votes
0 answers
42 views

Export Jupyter Notebook cell output that includes Plotly plots to an html file

I have a cell in a pretty long jupyter notebook that has an output that includes text (through print statements) as well as 3D scatter plots made with plotly (a python plotting library). The text and ...
J_Code's user avatar
  • 57
0 votes
0 answers
22 views

Jupyter notebook unvisible folders

I tried to access my jupyter notebook, but it only shows icons, not the names. Neither can I see or access to the folder / files. I can erase or make new folders and files, but I cannot access those, ...
bada's user avatar
  • 1
-2 votes
1 answer
46 views

ModuleNotFoundError: No module named 'train'

I was trying to run the following coding in Juypter Notebook but received the following error: Cell In[17], line 6 4 import os.path 5 import matplotlib.pyplot as plt ----> 6 import ...
user22058539's user avatar
-1 votes
1 answer
32 views

How can I change the width of Markdown cell previews in Notebooks in VS Code?

Is there any way in vs code to control the width of markdown cell for notebooks? Sometimes it may be too hard to read long lines. There is an example below. It will be greate if markdown cell looks ...
Anton Troitsky's user avatar
0 votes
1 answer
19 views

Can we use 'train_test_split' in one single colab(or jupyter notebook) twice?

I have to perform classification and regression using decision tree Machine Learning algorithm. Now I have already done the regression part of the code. If I proceed with classification task on this, ...
user22991625's user avatar
-1 votes
0 answers
27 views

Import tensorflow as tf not running

I try to run this code right here (note I am on python 3.9.12): import tensorflow as tf from object_detection.utils import config_util from object_detection.protos import pipeline_pb2 from google....
Jake's user avatar
  • 1
1 vote
2 answers
60 views

Plotting a cube on top of a plane, given all the vertices of the cube

I am tring to plot a cube on top of a plane using matplotib. I am doing a project on UAV(An unmanned aerial vehicle) Landing and there are these tests i have to visualize. I have a landing plane ...
wanjaswilly's user avatar
-1 votes
0 answers
20 views

How do I use PyGears, PyMTL, PyRTL, or CIRCT (with PyCDE) in a Jupyter Notebook -based Google Colab environment?

I would like to use a Python-based hardware description language (HDL), or hardware construction language (HCL), to design digital integrated circuits in a Jupyter Notebook environment on Google Colab....
Giovanni's user avatar
-2 votes
0 answers
23 views

Kernel dies again and again in jupyter notebook [closed]

Deep Learning I tried installing some library functions but still got no solution about it. I cant figure it out why is happening and im started coding recently in jupyter notebook. Im having error ...
Md. Shamsul Arefin Abir's user avatar
0 votes
0 answers
28 views

Shortcut for scrolling in Jupyter Notebook Docstring

I know that we can use Shift + Tab to show Docstring(documentation) in Jupter Notebook and pressing Tab again shows it in a larger pane. But I'm wondering if it is possible to move through the ...
User's user avatar
  • 25
0 votes
0 answers
27 views

Jupyter notebook throws error 'No Module named qiskit' however 'pip list' does shows qiskit as one of the installed packages under command prompt

I created python virtual environment using conda and switched to that environment on my windows machine. I installed qiskit using pip install qiskit and I verified installation using pip list where it ...
niradhya's user avatar
2 votes
1 answer
186 views

ModuleNotFoundError: No module named 'jupyter_server.contents'

I got this error: Traceback (most recent call last): File "C:\ProgramData\anaconda3\Lib\site-packages\notebook\traittypes.py", line 235, in _resolve_classes klass = self._resolve_string(...
Chrisv's user avatar
  • 23
-5 votes
1 answer
37 views

Anyone knows how to plot this ascii data? [closed]

I need to plot this ascii data, but I don't know how because I tried several times and always had a problem with the size of the data, basacally, these is the data: 0.462e+00 0.934e+00 0.173e+01 0....
DIEGO AXEL VALENCIA TORRES's user avatar

1
2 3 4 5
497