Dear all,
I would appreciate any help on the following issue. I have a very simple
iPython notebook|my_nb.ipynb|with two simple cells
|frommcmc importTree|
|a =Tree()print(a)|
This code used to run without problems, but recently has stopped
functioning when I run it in Jupyter (and, of course, the code
in|mcmc.py|has not changed). When I run this code with|ipython
my_nb.ipynb|the script runs fine and finishes without error. However,
when I open the notebook in Jupyter, the first cell runs fine but the
second stalls and never finishes, and the console shows the following
error (or warning, really):
|Traceback(most recent call
last):File"/usr/lib/python3.8/site-packages/ipykernel/kernelbase.py",line
268,indispatch_shell
yieldgen.maybe_future(handler(stream,idents,msg))File"/usr/lib/python3.8/site-packages/tornado/gen.py",line
735,inrun value
=future.result()File"/usr/lib/python3.8/site-packages/tornado/gen.py",line
742,inrun yielded =self.gen.throw(*exc_info)# type:
ignoreFile"/usr/lib/python3.8/site-packages/ipykernel/kernelbase.py",line
542,inexecute_request reply_content
=yieldgen.maybe_future(File"/usr/lib/python3.8/site-packages/tornado/gen.py",line
735,inrun value
=future.result()File"/usr/lib/python3.8/site-packages/tornado/gen.py",line
209,inwrapper yielded
=next(result)File"/usr/lib/python3.8/site-packages/ipykernel/ipkernel.py",line
287,indo_execute
andshould_run_async(code)File"/usr/lib/python3.8/site-packages/IPython/core/interactiveshell.py",line
2954,inshould_run_async
warnings.warn(DeprecationWarning:`should_run_async`will notcall
`transform_cell`automatically inthe future.Pleasepassthe result to
`transformed_cell`argument andany exception that happen during
thetransform in`preprocessing_exc_tuple`inIPython7.17andabove.|
Perhaps even more puzzling, if I put all the code in a single cell in
the notebook, then the whole code finishes without error both in the
command line*and*in Jupyter.
I have checkedthis similar thread
<https://stackoverflow.com/questions/63413807/deprecation-warning-from-jupyter-should-run-async-will-not-call-transform-c>but
my ipykernel is already up to date. In fact, I think all relevant
libraries are all at their most current versions:
|jupyter core :4.6.3jupyter-notebook :6.1.4qtconsole :notinstalled
ipython :7.18.1ipykernel :5.3.4jupyter client :6.1.6jupyter lab
:2.2.7nbconvert :5.6.1ipywidgets :7.5.1nbformat :5.0.6traitlets
:4.3.3tornado :6.0.4-2terminado :0.8.3-1|
Again, any help with this will be much appreciated! Thanks in advance.
Roger Guimera
--
You received this message because you are subscribed to the Google Groups "Project
Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/353a998a-ccd7-e610-0ed2-04f11cc8ed05%40gmail.com.