[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #IEZ-401417]: python kernel switcher plugin



Hi,

The way I usually manage this is with Miniconda/Anaconda and 3 environments, 
together with the nb_conda_kernels plugin. You'll also want to make sure you 
have the conda-forge channel set up for conda:

conda config --add channels conda-forge

1) Environment for the jupyter notebook

conda create -n notebook notebook nb_conda_kernels

2) Environment for Python 2

conda create -n py2 python=2 ipykernel

3) Environment for Python 3

conda create -n py3 python=3 ipykernel

To run the notebook then, you switch to the notebook environment and start the 
server:

conda activate notebook
jupyter notebook

Does that all make sense to you? I know it's a tad complicated, I'm not sure 
how they set up your multiple environments for the workshop.

Ryan

> Hi,
> 
> My name is Matt Flournoy, and I'm currently a PhD meteorology student at OU
> using Python for coursework and research. I have a quick question related
> to Python 2 and 3. Ideally, I'd like to be able to open a Jupyter notebook
> (in either a Python 2 or 3 environment) and be able to select whether I
> want that notebook to use Python 2 or 3. I attended a workshop at OU
> several months ago and we all got this scenario set up in the course, but I
> got a new laptop since then and am trying to recreate how we did that. This
> might be related to the python kernel switcher plugin. Could you please
> help me with this?

Ticket Details
===================
Ticket ID: IEZ-401417
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.