Not sure it's the right place ?

141 views
Skip to first unread message

Henri Girard

unread,
Aug 19, 2016, 3:10:13 AM8/19/16
to Project Jupyter
Hi all,
First thank you for jupyterlab, it's exactly what i looking for !
Ubuntu 16.04 working fine with it, even better because some jupyter kernels don't work properly but jupyterlab is doing it. Only one thing I can't get : I use a lot sagemath sage -n=jupyter but I can't get it in jupyterlab ?
Apparently python2 works fine but I don't see python3 or it's not working with qutip as python2 does. I set up both the same way sudo -H pip and pip3, no error at installation, but it's not really a problem as python2 is working, julia too, octave too, vpython too.
I wonder too how to split windows (vertical) if possible to see different kernels.
It's really excellent : I edit a py files I select it all and I make a new one in jupyterlab and run it !
Really a good job :)
Regards
Henri

Thomas Kluyver

unread,
Aug 19, 2016, 7:10:31 AM8/19/16
to Project Jupyter
On 19 August 2016 at 08:10, Henri Girard <henri....@gmail.com> wrote:
Apparently python2 works fine but I don't see python3

If you don't do that, it will only show you the Python version Jupyter is running on.

Henri Girard

unread,
Aug 19, 2016, 11:02:56 AM8/19/16
to Project Jupyter
I just did it. Effectivly it shows both version, but python3 doesn't find import qutip.
It had another problem : scipy was not imported too but from scipy import *, does it.

Thomas Kluyver

unread,
Aug 19, 2016, 11:57:51 AM8/19/16
to Project Jupyter
On 19 August 2016 at 16:02, Henri Girard <henri....@gmail.com> wrote:
I just did it. Effectivly it shows both version, but python3 doesn't find import qutip.

Is qutip definitely installed in both versions? You typically have to install Python packages separately in each version of Python you use.

Henri Girard

unread,
Aug 19, 2016, 12:53:40 PM8/19/16
to jup...@googlegroups.com

That's what I get from a python3 console

python2 qt.run() works fine

Type "help", "copyright", "credits" or "license" for more information.
>>> import qutip.testing as qt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/git/qut/qutip/qutip/__init__.py", line 214, in <module>
    from qutip.qobj import *
  File "/home/pi/git/qut/qutip/qutip/qobj.py", line 60, in <module>
    from qutip.ptrace import _ptrace
  File "/home/pi/git/qut/qutip/qutip/ptrace.py", line 38, in <module>
    from qutip.sparse import sp_reshape
  File "/home/pi/git/qut/qutip/qutip/sparse.py", line 44, in <module>
    import scipy.sparse.linalg as spla
  File "/usr/lib/python3/dist-packages/scipy/sparse/linalg/__init__.py", line 112, in <module>
    from .isolve import *
  File "/usr/lib/python3/dist-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
    from .iterative import *
  File "/usr/lib/python3/dist-packages/scipy/sparse/linalg/isolve/iterative.py", line 10, in <module>
    from scipy._lib.decorator import decorator
ImportError: No module named 'scipy._lib.decorator'
>>>

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/n9oH9N5daS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qjXQTZG1ruwFM5Th6hdVRpfwOvaCRK01To2tVQjAGGimw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Henri Girard

unread,
Aug 19, 2016, 1:03:17 PM8/19/16
to Project Jupyter
I pip3 install scipy --upgrade and it's working now



Le vendredi 19 août 2016 09:10:13 UTC+2, Henri Girard a écrit :
Reply all
Reply to author
Forward
0 new messages