Questions tagged [jupyter-kernel]
66 questions
0
votes
1 answer
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, which is, eg.

Smart Humanism
- 155
- 1
- 6
0
votes
0 answers
How to use values from environment variable with kernel.json file
I am trying to write a kernel.json file to support a new kernel that I am developing under Windows 11. It is working fine with hardcoded paths to the executable kernel. How can I use an environment variable to make the template kernel.json file…

opeongo
- 384
- 1
- 14
0
votes
0 answers
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 achieve this.
I also looked at the jupyter REST API to see if…

Hassan
- 396
- 5
- 12
0
votes
0 answers
How to import code from an external module to IJava notebook?
I want to import a custom java script into an IJava notebook. Is it possible?
I'm trying to do it this way, but it doesn't seem to work. I'm new to "IJava" so if I'm doing something wrong please correct me.
My working directory structure:
├──…

Jakub Lechowski
- 21
- 2
0
votes
2 answers
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 available with other kernels on the menu Kernel → Change…

dudung
- 499
- 2
- 17
0
votes
0 answers
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, the notebook code cells are hidden.
In my case…
0
votes
2 answers
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 way.
I would like to be able to use a kernel from…

jss367
- 4,759
- 14
- 54
- 76
0
votes
1 answer
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 projects, it will run using the system python by…

Karalga
- 495
- 4
- 11
0
votes
0 answers
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 created a pure python kernel, but I'd like to clone…

neves
- 33,186
- 27
- 159
- 192
0
votes
1 answer
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 for the below code
code = """a = {'a': 1}
b =…

wasp256
- 5,943
- 12
- 72
- 119
0
votes
1 answer
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 found IPython.embed which upgrades the session (but…

user3240588
- 1,252
- 9
- 16
0
votes
1 answer
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 the first problem I tried making a normal .py file…

Saqlain Afroz
- 25
- 2
0
votes
0 answers
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 jupyter kernel that I connect to a console using…

PlasmaBinturong
- 2,122
- 20
- 24
0
votes
1 answer
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 determines the sort order. Looking at the kernel.json…

Joe J
- 9,985
- 16
- 68
- 100
0
votes
1 answer
Jupyter directories when in virtual environemnt
Where does jupyter store kernelspecs and other data, when running inside a virtual environment?
(I'm interested in conda environments, but knowing about other kinds of virtual envs would be interesting too).

Michele Piccolini
- 2,634
- 16
- 29