Problem with Restart kernel and run all cells
for R and Julia kernels in datascience-notebook
?
#1167
Labels
tag:Upstream
A problem with one of the upstream packages installed in the docker images
Hi,
I'm having issues with the
Restart kernel and run all cells
command for R and Julia kernels in the latest versions of thedatascience-notebook
(both the option in theKernel
menu and the shortcut button at the top of my notebooks). Older versions of the image (e.g.54462805efcb
) work fine, but in the latest versions I have to separately use the "Restart kernel" command - sometimes several times - followed by theRun all
command. This only applies to the Julia and R kernels;Restart kernel and run all cells
works fine for the Python kernel.All kernels do work eventually (i.e. my code runs successfully), but the user experience is now a little confusing/frustrating, especially for new users.
What docker image you are using?
jupyter/datascience-notebook
What complete docker command do you run to launch the container (omitting sensitive values)?
docker run -ti --rm -p 8888:8888 -v ${PWD}:/home/jovyan/work jupyter/datascience-notebook:latest start.sh jupyter lab
What steps do you take once the container is running to reproduce the issue?
print("Hello world")
for R orprintln("Hello world")
for Julia). Run the cell and confirm that the output is printed successfullyRestart kernel and run all cells
from theKernel
menu (or use the equivalent button at the top of the notebook)What do you expect to happen?
The kernel should be restarted, the cell should be executed, and the output should be printed again.
What actually happens?
The notebook "hangs" indefinitely, with asterisk symbols (
*
) next to each code cell. The terminal running the notebook server simply shows e.g.but nothing actually happens.
A workaround is to choose
Kernel > Restart kernel
, then wait until it saysKernel | Idle
at the bottom left of the screen, then chooseRun > Run all cells
. This works OK, but it's cumbersome.I'm testing with Linux containers running on Docker for Windows, but I have exactly the same problem when the image is deployed in Google Cloud on my JupyterHub.
I guess something isn't waiting for the kernel to restart properly before trying to run the code, but I'm not sure where to look next to pin down the problem. Any advice gratefully received.
Thanks!
The text was updated successfully, but these errors were encountered: