Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45993 - [ipython2-notebook] python3 instead of python2 dependencies

Attached to Project: Community Packages
Opened by Antonio Rojas (arojas) - Saturday, 15 August 2015, 12:00 GMT
Last edited by Kyle Keen (keenerd) - Friday, 21 August 2015, 17:39 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

ipython2-notebook depends on the python3 version of its dependencies via jupyter (pyzmq, tornado, jsonschema...) but not on the python2 version.
This task depends upon

Closed by  Kyle Keen (keenerd)
Friday, 21 August 2015, 17:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  ipython2-notebook 4.0.4-1
Comment by Kyle Keen (keenerd) - Sunday, 16 August 2015, 11:58 GMT
The same Jupyter instance is used for both python2 and python3, by design. The "language agnostic" Jupyter should not need too many py2 duplicates.

You are absolutely correct about python2-pymzq and the optdepts for jupyter-qtconsole-py2. These have been added. However nothing seems to be broken by removing the other py2 packages. I may be testing incorrectly though. Can you provide any additional details?

I see that I accidentally included "jupyter-py2" in the ipython2-notebook package. If you were asking for dependencies to make that work, sorry, but that executable should not be there.

ipython2-notebook-4.0.2-3 has these changes. I will consider the bug fixed unless you can find something broken in the combination of 'jupyter-notebook' and the python2 kernel.



Comment by Antonio Rojas (arojas) - Sunday, 16 August 2015, 12:14 GMT
I may just be confused about how the notebook is supposed to be launched now, but I can't get it to work with 4.0.2-3 either:

> ipython2 notebook
Traceback (most recent call last):
File "/usr/bin/ipython2", line 5, in <module>
start_ipython()
File "/usr/lib/python2.7/site-packages/IPython/__init__.py", line 118, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 591, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 305, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/IPython/core/application.py", line 386, in initialize
self.parse_command_line(argv)
File "/usr/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 300, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 487, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/traitlets/config/application.py", line 418, in initialize_subcommand
subapp = import_item(subapp)
File "/usr/lib/python2.7/site-packages/ipython_genutils/importstring.py", line 31, in import_item
module = __import__(package, fromlist=[obj])
ImportError: No module named notebook.notebookapp
Comment by Antonio Rojas (arojas) - Sunday, 16 August 2015, 13:20 GMT
I compiled notebook, nbconvert and nbformat with python2 and "ipython2 notebook" works again (if the needed python2 deps are installed). Sage relies on this behaviour to launch its Ipython notebook interface. Would it be possible to provide a full separate python2 jupyter package?
Comment by Kyle Keen (keenerd) - Sunday, 16 August 2015, 13:26 GMT
No, I have no intent of doing that. It is needless duplication. Here is how you access a python2 notebook:

jupyter-notebook

Wait for the local jupyter client to open in the browser. And then select the New dropdown and under 'Notebooks', Python 2.
Comment by Antonio Rojas (arojas) - Sunday, 16 August 2015, 14:06 GMT
OK. I'll need to patch Sage then to use this way to launch the notebook, please keep this in testing until i figure it out.
Comment by Kyle Keen (keenerd) - Sunday, 16 August 2015, 15:00 GMT
Sure thing. You can also open a kernel through the libraries. Take a look at /usr/share/jupyter/kernels/python2/kernel.json (in ipython2-notebook) for one way of doing that. I think jupyter-qtconsole-py2 has another way of handling it.
Comment by Antonio Rojas (arojas) - Sunday, 16 August 2015, 16:31 GMT
sagemath 6.8-3 now ships a Jupyter kernel file. The "official" way to launch the notebook is still broken, as it is for ipython2, but at least now a Sage session can be started from inside Jupyter. Feel free to close this, and please move sagemath to community when you move ipython 4.

Loading...