0

My development environment is Anaconda3 with a virtual environment "OpenCV3". I can run Jupyter in my main enviroment, but I don't know how to run jupyter in virtual environment "OpenCV3".

could you please show me how to do it?

Wenfang Du
  • 8,804
  • 9
  • 59
  • 90
Sam Yao
  • 3
  • 2

1 Answers1

1

The following options are available (there may be others available)

  • change conda environment from the terminal (using the appropriate command corresponding to your OS) and run jupyter notebook.
  • Install an ipython kernel for each environment as described in this answer. This will enable you to switch between environments directly in Jupyter, without having to manually switch among environments, from the Kernel>Change Kernel menu.
Community
  • 1
  • 1
Stelios
  • 5,271
  • 1
  • 18
  • 32
  • Thank you for your answer.But I have check my Anaconda does not included **nb_conda_kernels** package. And I can't install, due to don't support Python3.6. – Sam Yao Apr 19 '17 at 08:32
  • I tried to Manually registering kernels. I have done install **conda install notebook ipykernel** in both main environment and opencv3 environment. But as I enter jupyter notebook. It still have only main environment listed. I can't activate opencv3 environment. – Sam Yao Apr 19 '17 at 08:38
  • @SamYao Did you perform a `ipython kernel install --user` in each environment when you attempted to manually register kernels, as described in the answer? – Stelios Apr 19 '17 at 08:47
  • I got it!!! I manually add another kernel.json in "Jupyter kernels" folder. and it works!!!! Thank you. – Sam Yao Apr 19 '17 at 08:49