76 questions
1
vote
0
answers
61
views
How to programmatically set a default Jupyter kernel in VSCode integration tests?
We're developing a VSCode extension that works with Jupyter notebooks and need to run integration tests in CI/CD. The main issue is that when running integration tests, VSCode prompts the user to ...
0
votes
1
answer
341
views
Custom jupyter kernel on Google Colab
We are building some tutorial notebooks (for an average technical audience). We have problems on Google Colab due to incompatibilities of some of the packages we use and the preinstalled versions of ...
0
votes
0
answers
29
views
Jupyter kernel for R + Spark
I am having an issue while trying to create new kernel for JupyterLab for R + Spark.
Without spark something like this works for me (kernel.json)
{
"display_name": "R",
&...
0
votes
0
answers
37
views
Jupyterlab alternative for pdb/ipdb
How can I set a breakpoint in a Python script running in a Jupyter notebook such that:
When the breakpoint is hit, the variables from the script are available in the Jupyter kernel.
I can interact ...
0
votes
0
answers
26
views
When I use the kmeans algorithm in jupyter notebook, the jupyter kernel keeps crashing
this is my code:
When I run to the last line of code, the Jupyter kernel keeps crashing, but no error is displayed in the terminal
At first I thought it was because of the conflict in the library ...
1
vote
1
answer
1k
views
Jupyter Notebook Cell Run Count Going Up in 2s
My jupyter notebook cell count is starting at 2 and going up in 2s. I.e. the first cell I run (even after I restart the Kernel) has a cell count 2, the next is 4, then 6 etc (see screenshot).Does ...
1
vote
0
answers
54
views
How to connec to current jupyter notebook kernel in vscode extension development
I'm trying devleop a jupyter notebook extension for vscode that works specifically with dataframes (in pandas). As part of this project, I need to access data stored in dataframes within the notebook ...
0
votes
1
answer
37
views
Jupyter Notebook | Kernel stopped, will restart shortly | Error message when running notebook
I was running python code on Jupyter Notebook when the error saying the kernel has stopped, it will restart automatically.
There is an error specifically when running the tensorflow package. Updating ...
0
votes
0
answers
107
views
Issue in running Fortran in jupyter notebook in VScode
I am able to work with Fortran kernel in jupyter-notebook in the browser but getting issue in vscode
I could select Fortran as kernel option in vscode but giving this error
Error Message
where should ...
0
votes
0
answers
144
views
Reloading modules in JupyterLab doesn't work until I restart the server
I'm facing issues when making changes to a custom module and using it in a Jupyter session. The changes to my module do not take effect until I restart the server. Not the kernel. The server. ...
0
votes
0
answers
190
views
Is It Possible to Automatically Enable Code Whisperer Extension Using SageMaker Lifecycle Configurations?
I've been following the AWS blog post on using SageMaker Lifecycle Configurations for customizing SageMaker Studio. According to the post, the second use case involves the installation of custom ...
1
vote
0
answers
86
views
Installing Jupyter Ganymede kernel on M1 Macbook pro + Cannot run program "/usr/bin/env bash"
I am working on getting the Ganymede kernel installed in my Jupyter environment. Followed the instructions from the docs. Mine is an M1 Macbook pro.
when I execute the following command:
$ java -jar ...
-1
votes
1
answer
152
views
Jupyter kernel dying when trying to run conv neural network code in wsl with h/w acceleration
I am doing basic code of classifying cats and dogs using convolutional neural network. I have 4000 images of dogs and 4000 images of cats.
When the code goes to the part where we train the model the ...
1
vote
1
answer
513
views
How can I run a jupyter kernel from inside of fast API?
I'm trying to do something simple--execute code in a jupyter notebook kernel from within a fastAPI route.
here's what I have:
from fastapi import FastAPI, HTTPException, Body
from jupyter_client ...
0
votes
0
answers
116
views
Custom jupyter kernel in a continuous restart loop
I have a custom jupyter kernel written. The kernel as such seems to work OK because I can test it by starting it from the command line like so python3 -m kernelname and eventually execute commands.
...
1
vote
1
answer
406
views
Can't connect to my kernel in jupyter-lab on GitHub Codespaces
I am setting up GitHub Codespaces for my project.
I have my .devcontainer configuration with a following Dockerfile:
FROM condaforge/mambaforge:latest
RUN apt-get update && apt-get install ...
0
votes
0
answers
52
views
Jupyter Notebook Kerneal dies
I'm a new, novice user of Jupyter; having just successfully installed Anaconda, along with some packages I need (tensorflow and keras), I keep on getting 'the kerneal appears to have died. It will ...
0
votes
1
answer
596
views
How to get the stdout of the jupyter kernel shell?
I'd like to know how to get the Jupyter kernel's stdout, which writes on the shell the kernel is running on, not the stdout whose output is printed to the browser. sys.stdout only gives the latter, ...
0
votes
0
answers
599
views
Use an already running kernel in jupyter notebook
In jupyter lab when selecting kernel you have the option to "Use kernel from other session". The same functionality does not exist for jupyter notebook and I could not find any tool to ...
1
vote
1
answer
262
views
Install into system instead of local directory?
julia> using Pkg
julia> Pkg.add("IJulia")
Installing known registries into `~/.julia`
...
By default:
Installs known registries into ~/.julia
Install kernel into ~/.local/share/...
1
vote
0
answers
183
views
R package install issue in Jupyter Notebook launched with Anaconda
I created an R environment in Anaconda and launched it using Jupyter Notebook. I am receiving the following error message when I attempt to install the R package "ggbeeswarm."
install....
1
vote
3
answers
8k
views
Install Python package inside a Jupyter Notebook kernel
Inside a Jupyter Notebook I have managed to install a Python kernel with
!python -m ipykernel install --user --name other-env --display-name "Python (other-env)"
as informed here and it is ...
5
votes
1
answer
11k
views
Jupyter Notebook with C programming Language (Windows OS)
How do I create a C Notebook in Anaconda Jupyter?
When I ran the following commands. It does not seem to load the install_c_kernel python file.
pip install jupyter-c-kernel
install_c_kernel
jupyter-...
1
vote
0
answers
89
views
Kernel cancelling a `input_request` at the end of the execution of a cell
I'm implementing a new Go kernel, using directly the ZMQ messages. But as an extra I want it to execute any bash command when a line is prefixed with !, similar to the usual ipython kernel.
One of the ...
5
votes
1
answer
1k
views
Manually Stop Jupyter Kernel and Prevent from Restarting
Background
I have created a Jupyter kernel A from which I launch another kernel B. I am doing this in order to audit the execution of kernel B. So when a user selects kernel A from the interface, ...
1
vote
0
answers
70
views
jupyter notebook keeps dying while training
When executing model-training code on jupyter notebook(with cu11.7), the kernel fails to proceed more than 1 epoch and the kernel continues to die as below.
What's strange is that when running the ...
1
vote
0
answers
425
views
How to correctly access to remote Jupyter Lab server (Gitpod) and how to provide security
I'm working on a project, and one of the steps is to allow contributors to be able to use Jupyter Lab on the Gitpod. Also in our project, we assume that users can use Jupyter Lab on a compute cluster ...
0
votes
0
answers
478
views
Voila is not executing any cell of jupyter notebook, just showing outputs already present in notebook
There are two steps voila performs while rendering a jupyter notebook.
Voilà runs the code in the notebook and collects the outputs.
The notebook and its outputs are converted to HTML. By default, ...
0
votes
2
answers
2k
views
Add correct kernel to conda environment
I am trying to add a new conda environment to be available as a jupyter kernel when I run a Jupyter notebook from my main environment. I've developed a hacky solution but I suspect there's a better ...
3
votes
5
answers
2k
views
set_glue_version exception after upgrading aws-glue-sessions
Using interactive Glue Sessions in a Jupyter Notebook was working correctly with the aws-glue-sessions package version 0.32 installed. After upgrading with pip3 install --upgrade jupyter boto3 aws-...
0
votes
1
answer
224
views
Pipenv-aware jupyter kernel
I use one (project-independent, installed with pipx) jupyter notebook (or lab) installation, and then separate virtual environments for each project (using pipenv).
If I open a notebook in one of the ...
5
votes
1
answer
1k
views
kube service domain name not working, but clusterIP does work with Jupyter Enterprise Gateway
I have a Jupyter notebook setup in the jupyter namespace on a kubernetes cluster, and Jupyter Enterprise Gateway setup in the enterprise-gateway namespace as a Service in the same cluster.
If I ...
1
vote
3
answers
1k
views
Failed to start the Kernel. OSError: [WinError 123]
Since a few days I can't run my code (not even a simple print("Hello wolrd")) file in my python interactive window anymore. When I try to start the kernel I get the following message:
...
1
vote
1
answer
4k
views
How to install a new Jupyter Kernel from script
I am trying to install a new kernel on a jupyter environment from bash script.
In a dockerfile that uses jupyter/minimal-notebook as the parent image, I run a bash script that:
generates a new ...
0
votes
0
answers
151
views
Can I clone a jupyterhub kernel?
I access a JupyterHub instance with some preconfigured kernels. I know how to create a new kernel from scratch, but how can I clone an existing one? I want to customize it with my own packages.
I ...
6
votes
2
answers
3k
views
Connecting a jupyter notebook to an existing and running ipython kernel
Short version: I have a software running its own jupyter kernel. I want to connect to this running kernel from an external source. This works fine with the --existing option of jupyter console but ...
0
votes
1
answer
73
views
Get raw Python objects from KernelManager
When running code in a Jupyter kernel it is possible to get the iopub or the shell messages from the respective channels. Is is possible to extract the raw python objects from the kernel as well?
Say ...
2
votes
0
answers
2k
views
In jupyter notebook 'Run' & 'Kernel' options are disabled
I'm new to Python programming. I just downloaded a python project code to test train the sample.
Has installed python & jupyter notebook desktop setup in windows 10, but in both the localhost web ...
0
votes
1
answer
1k
views
How can I start an IPython Kernel from a running plain Python interpreter?
Here is what i'd like to do: From a running python process, upgrade it to an IPython Jupyter kernel, which shares the local and global variables and can be accessed by other Jupyter clients.
I have ...
9
votes
1
answer
798
views
lfortran in a jupyter notebook kills kernel
I can't seem to get output from the lfortran jupyter kernel.
I installed via conda install for:
- lfortran
- jupyter
I can run jupyter and select the lfortran kernel. However:
I see no hello ...
1
vote
0
answers
153
views
Failed to start the Kernel
I am quite new to this, I tried using Jupyter(on VS code) in one of the folders and it works fine but the moment I open a .ipynb file in some other folder it shows a kernel error
I think I have not ...
4
votes
1
answer
8k
views
Jupyter Notebook debugging not working on VS Code
I'm trying to activate the debugging functions that are now available on VSCode for Jupyter Notebooks but I'm having some problems with that.
In my interface I can see the button to 'Run by Line' next ...
0
votes
1
answer
2k
views
VS Code is taking a lot of time to load python modules in jupyter notebook
When I run for the first time jupyter notebook in vs code takes very long time to connect to kernel and then it takes again a lot of time to load the modules like numpy, pandas, matplotlib etc. For ...
3
votes
3
answers
13k
views
Kernel not connecting in Jupyter Lab
The kernel says connecting and then says No Kernel | Disconnected.
I have clean-uninstalled anaconda and uninstalled all jupyter using
python -m pip uninstall -y jupyter jupyter_core jupyter-client ...
0
votes
0
answers
601
views
Remote Jupyter kernel (over ssh) crashes when X11 connection is closed
My python analysis setup:
I run long sessions of a Python3 console on a ssh server. I keep them running inside tmux across multiple connections.
I either run IPython3, or more recently I launch a ...
1
vote
1
answer
1k
views
Generating list on Python 3/Jupyter kills Kernel
I'm using a notebook on Python 3 to generate a list with a dataset of 200 observations. Every time I run it, the kernel disconnects with the error message:
"The kernel for Desktop/Untitled2.ipynb ...
2
votes
1
answer
789
views
Snakemake - Jupyter lab notebook does not find kernel
When writing a program in a jupyter lab notebook using R or python I install specific conda environments as kernels to access that environment-specific packages from a single jupyter lab installation ...
1
vote
1
answer
433
views
jupyter_client KernelClient gives "ChannelABC() takes no arguments" when starting channels
I'm trying to interact with a running ipython kernel through a python shell, using the jupyter_client package.
I have the kernel running, with a connection file (e.g. "kernel-7772.json") ...
1
vote
1
answer
1k
views
jupyter lab launcher: change soft order of launcher icons
In the Jupyter Lab launcher, I'd like to control the sort order of the launcher icons. Basically, I want the newest versions of Python to show up first, to the left.
Right now, I don't see what ...
1
vote
1
answer
627
views
How to setup custom jupyter kernels on WSL2?
I've been following https://queirozf.com/entries/jupyter-kernels-how-to-add-change-remove to create a jupyter kernel.
This procedure worked when I was on Ubuntu or WSL1.
However, I'm unable to change ...