Jupyter: Version up eggs and update erp5_kernel accordingly
Pin versions required for ipython==4.0.0 with ipykernel separated from ipython eggs. The split was in accordance to : https://blog.jupyter.org/2015/04/15/the-big-split/
-
@kirr : This commit with pinned eggs works fine with the buildout for version upgrade. Please add this one. Thanks
-
Owner
@tiwariayush - thanks, applied in d88878e6.
Btw, I still get
[W 21:54:30.006 NotebookApp] Unrecognized alias: '--logfile=/srv/slapgrid/slappart8/srv/runner/instance/slappart0 /var/log/ipython_notebook.log', it will probably have no effect.
in .slappart0_ipython_notebook.log
-
@kirr : The reason for this behavior is the separation of ipython to jupyter and other components. No where is past
logfile
was option forNotebookApp
. It was always forInteractiveShell
which is basicallyipython terminal
itself (notnotebook
).So, when we start ipython notebook from the wrapper :
sys.exit(slapos.recipe.librecipe.execute.generic_exec((['/srv/slapgrid/slappart18/srv/runner/software/267794350b193d64deb1c3425aab51a5/bin/ipython', 'notebook', '--no-browser', '--ip=2001:67c:1254:e:c1::5968', '--port=8888', '--port-retries=0', '--certfile=/srv/slapgrid/slappart18/srv/runner/instance/slappart0/etc/ipython_notebook_cert.crt', '--keyfile=/srv/slapgrid/slappart18/srv/runner/instance/slappart0/etc/ipython_notebook_cert.key', '--notebook-dir=/srv/slapgrid/slappart18/srv/runner/instance/slappart0/var/notebooks', '--config=/srv/slapgrid/slappart18/srv/runner/instance/slappart0/etc/ipython_notebook_config.py', '--log-level=DEBUG'],
it started
ipython notebook
application, which is a part of ipython. Now if we see for the options for ipython usingipython --help-all
command, we can see--logfile=<Unicode> (InteractiveShell.logfile) Default: '' The name of the logfile to use.
which is an option for
ipython
notnotebook
. There is nothing which can be used to logNotebookApp
which is what we are running(from what I have found till now, looking in more depth).[D 06:35:37.523 NotebookApp] Config changed: [D 06:35:37.523 NotebookApp] {'FileContentsManager': {'root_dir': u'/srv/slapgrid/slappart18/srv/runner/instance/slappart0/var/notebooks'}, 'NotebookApp': {'open_browser': False, 'log_level': u'DEBUG', 'ip': u'2001:67c:1254:e:c1::5968', 'config_file': u'/srv/slapgrid/slappart18/srv/runner/instance/slappart0/etc/ipython_notebo
Look for the
NotebookApp
in start of every line.I am pretty sure there must be some way to add logs for notebook. But in the search, I found out its better to be dependent on
jupyter
than onipython 4.x
series from our usage after the big split.So, I am going this way:
- Keeping
jupyter
as the base for startingnotebook
, notipython
- Then we'll see what
notebook
insidejupyter
has to offer for us regarding logging.
- Keeping
-
Owner
@tiwariayush ok, let's try to switch to
jupyter
.