0

So I created a python 2.7 env "gdsenv" using anaconda:

enter image description here

Then I installed the jupyter kernel:

enter image description here

...so far it seems good.

The problem is that if I open jupyter-notebook, I don't get python 2.7 option (I have python 3.5 installed on another env):

enter image description here

Why is that and how can I fix that ?

1 Answer 1

1

See if you can install an ipython kernel for python2.

I don't have anaconda installed, but here's how it works for a virtual environment created with python2 -m virtualenv jupyter-test:

  1. Install jupyter:
    python2 -m pip install jupyter
  2. Install ipython kernel for python2:
    python2 -m pip install ipykernel
    python2 -m ipykernel install --user
  3. Start jupyter not[![ebook
    jupyter notebook][1]][1]

You should now be able to create a python2 kernel:

Python 2 Notebook

See also this question which seems related: Using both Python 2.x and Python 3.x in IPython Notebook .

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot for this helpful answer ! I will try it out. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.