-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise pyzmq
requirements in documentation
#6849
Comments
I tried opening the notebook in JupyterLab Desktop (3.6.1-1) and did not see the crash mentioned. Might be specific to Notebook 6, not Lab. |
Do you see any errors in the terminal where you run Jupyter Notebook at the time of your crash? If so, can you include these in this issue? |
Just wanted to mention that I tried reproducing this with Notebook 6.5.4 and Python3.11.3 but was not able to reproduce the crash. |
Nothing visible in the notebook, I can show what's written on logs by the notebook/lab server but it doesn't give much beyond kernel restarted. Is there another way to get more relevant logs? |
I had similar behaviour on lab and notebook. What ipython/ipykernel version do you have? |
Dockerfile.txt |
Nothing apart from the kernel restarting, let me know if there's any flags or vars to set so that it might give more info.
|
did a more vanilla approach and had the same crash
then
in container bash shell
clicking on the notebook url to open in browser, new notebook, This is whats printed to screen on the bash shell where I started jupyter notebook
|
Hi @miloaissatu, thanks for the information. When you encounter this error, are you using one of the official docker stack images from https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html? |
I didn't use the official docker stacks images as I didn't see a python3.11 version available. |
@RRosio ### & @JasonWeill , were you using conda/mamba/micromamba to install jupyter components and dependencies when attempting to reproduce the crash? i've been able to consistently reproduce this behaviour on python3.8,3.9,3.10,3.11 on rockylinux, debian, ubuntu with python installed via their package managers and also from source. On some of these versions the kernel crash wasn't instant but would happen after cycling through a few cells using shell/magic functions e.g. the only time i had success with not being able to intentionally crash the kernel on the current jupyter package versions is when installing jupyter components via mamba/conda instead of pip. this behaviour isn't specific to notebook, i could also get it on lab and on jupyter console, though jupyter-console is a little different where it give this message and then the kernel becomes unresponsive. I don't get this behaviour when using ipython console directly.
i tried increasing any thoughts/suggestions on where this issue should be raised? something extra might be being done on the conda-forge jupyter feedstock that's missing from pip/pypi. |
Hi @miloaissatu thank you for the additional information! Have you tried to run this in |
couldn't reproduce it on ipython, something to do with jupyter-client<-pyzmq->ipykernel. looks like anything newer than jupyter-client==7.2.0+pyzmq==22.2.1 has this issue |
update - can't reproduce the issue after installing the respective OS' zeromq-devel or equivalent, then pyzmq with pip install --no-binary had some indication from doing a diff on conda's pyzmq vs pip's downloaded pyzmq and also pyzmq's documentation which suggests building from source rather than prebuilt binaries if facing issues. https://github.com/zeromq/pyzmq#building-and-installation |
Hi @miloaissatu, thank you for the further updates! Does this seem to be similar to the issue reported at #6721? |
@miloaissatu Any update regarding @RRosio 's question last week? |
Hi @RRosio , @JasonWeill , no that issue doesn't seem related imo. I haven't been able to reproduce my problem since having pip install pyzmq via source instead of the prebuilt binaries. |
Hi @miloaissatu thank you for your response. Is this an issue that is then solvable by updating our dependency on |
Perhaps if your dependency specifies it requires pyzmq but to build from source rather than use pre-built binaries, not sure about what needs to be in the python package but in a requirements file it would be
its not an issue in pyzmq, not one i could recognise anyway. only hint was on the pyzmq pypi and docs page. excerpt from https://pypi.org/project/pyzmq/
|
pyzmq
requirements in documentation
There's a typo. Happy to Help, Very New Guy to GitHub |
Having kernel crashes on on python3.11.3, ipython8.12.0, notebook6.5.4, jupyterlab 3.6.3 when running a shell/magic command after adding anything other than 'ignore' (without additional specific filters).
Notebook with reproduction examples and environment info:
filterwarnings_kernelcrash.zip
Can't replicate this behaviour on python3.10 using docker-stacks minimal notebook.
Refer to attached ipynb in zip for abit more info, but brief version below.
Example cell that results in immediate crash
Example cells that don't result in immediate kernel crash
Environment info, reduced to packages I felt were relevant, refer to zipped notebook for full list. Jupyter installed via
pip install jupyterhub jupyterlab notebook
so just latest stable picked up from pypi.The text was updated successfully, but these errors were encountered: