Can the launcher show 2.7 notebook or terminal option? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Can the launcher show 2.7 notebook or terminal option? (/thread-12420.html) |
Can the launcher show 2.7 notebook or terminal option? - miner_tom - Aug-24-2018 I have jupyter notebook installed and python 3.6 is an option as shown in the launcher. When I open the launcher, I see icons for opening notebooks and terminals but all are in python3. I have installed packages as shown here: conda create -n py2 python=2 anaconda # register py2 kernel activate py2 ipython kernel install pip install jupyterhub When I open a new launcher I still see no option for opening a python2 terminal or notebook, only python3. Also, when I open a particular notebook that I have, I see options for changing the kernel but only see the option for python3 or pythonV (which I don't know what that is). I know that the code from the notebook that I am importing "wants" python 2.7. It is in the documentation and also it is obvious because of how the "print" command is used. Thank You Tom RE: Can the launcher show 2.7 notebook or terminal option? - perfringo - Aug-24-2018 First of all you should check your Jupyter Notebook version as: Quote:Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7. In documentation there is little bit different command to install Python 2 kernel with conda. Instead of last two rows there should be python -m ipykernel install --user As in documentation: Quote:The last command installs a kernel spec file for the current python installation. Kernel spec files are JSON files, which can be viewed and changed with a normal text editor. |