Questions tagged [jupyter-kernel]
66 questions
1
vote
1 answer
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") sitting in %APPDATA%\jupyter\runtime.
The code I run is the…

Thomas
- 23
- 3
1
vote
1 answer
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 kernel on WSL2. Whatever custom kernel I select,…

Alex
- 160
- 11
1
vote
0 answers
Kernel Won't start in Jupyter notebook in python 3 version
Recently I install the latest version of anaconda with python 3 version on my mac OS Catalina. When I am opening the jupyter notebook, the kernel is not starting. I am getting the following error on the terminal;
The Jupyter Notebook is running…

Shubham Sharma
- 11
- 2
1
vote
1 answer
Kernelspec error while trying to run PapermillOperator in Airflow
I am trying to execute .ipynb file from Airflow in ubuntu WSL using PapermillOperator. But my task keeps failing with error KeyError: 'kernelspec'. Looking at other answers from various posts I tried several approaches but it is not working. I have…

mockash
- 1,204
- 5
- 14
- 26
1
vote
0 answers
JupyterLab kernel log to web console
I have created a jupyterlab extension and trying to execute a code in the kernel using requestExecute method. Registering the IOPub callback gives back the kernel output which i wanted it log to the JupyterLab web console extension.
execute code…

ikiw
- 372
- 1
- 4
- 17
1
vote
2 answers
Kernel error: jupyter_client/connect.py AssertionError
Error message
Traceback (most recent call last):
File "/home/djan/anaconda3/lib/python3.7/site-packages/tornado/web.py", line 1699, in _execute
result = await result
File…

JDDS
- 79
- 2
- 9
1
vote
1 answer
How can I implement a File Dialog box that opens in Azure Jupyter Notebook In Python?
My Code :
%gui qt
from PyQt5.QtWidgets import QFileDialog
def gui_fname(dir=None):
"""Select a file via a dialog and return the file name."""
if dir is None: dir ='./'
fname = QFileDialog.getOpenFileName(None, "Select data file...",
…

Rocky_Mental
- 148
- 1
- 2
- 12
1
vote
0 answers
Installing virtual environment kernel for jupyter notebook throws "TypeError: 'type' object is not subscriptable"
OS: Ubuntu 16.04 lts
I have created a virtual environment "analytics-3" using virtualenvironmentwrapper and felt the need to use Jupyter notebook for some work.
Python version :- 3.5.2
Downloaded Anaconda3-4.3.0-Linux-x86_64.sh and installed…

Arghya Ganguly
- 51
- 8
1
vote
1 answer
how to access jupyter-kernel-gateway Rest api from internet?
I created REST api using jupyter kernel gateway by following tutorial
jupyter kernelgateway \
--KernelGatewayApp.api='kernel_gateway.notebook_http' \
--KernelGatewayApp.seed_uri='jyhost-FR/rest_api.ipynb'
I can access this from my laptop…

UpaJah
- 6,954
- 4
- 24
- 30
1
vote
1 answer
Restarting kernel for one and only one .ipynb document in jupyter
I have a process running in one of .ipynb document in jupyter for many hours using Python3 kernel. I don't need it to die. I was working in the other document in parallel using the same Python3 kernel and the process got stuck.
I wonder if I can…

DmytroSytro
- 579
- 4
- 15
1
vote
1 answer
Adding kernels in jupyter
I have python3 kernel and want to add python2 kernel to my Jupyter notebook.
Command I used to add python2:
jupyter kernelspec install C:\Python27\
I get:
[InstallKernelSpec] Installed kernelspec python27 in…

Ani Menon
- 27,209
- 16
- 105
- 126
0
votes
1 answer
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 import KernelManager
from…

Foobar
- 7,458
- 16
- 81
- 161
0
votes
0 answers
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.
But the notebook just doesn’t connect. It appears…

roger
- 35
- 1
- 5
0
votes
0 answers
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 sudo gcc --yes && apt-get clean
RUN mamba install -c…

maciek
- 1,807
- 2
- 18
- 30
0
votes
0 answers
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 restart automatically' error message when I try to…