Python Forum
Can the launcher show 2.7 notebook or terminal option?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can the launcher show 2.7 notebook or terminal option?
#1
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

Reply
#2
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.

If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).

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.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher Pops Up When Py-based App Is Running (Mac) radix_optimus 0 505 Sep-18-2023, 09:22 AM
Last Post: radix_optimus
  Python Launcher INI File leodavinci1990 1 754 Jul-30-2023, 03:38 PM
Last Post: snippsat
  PIL Image im.show() no show! Pedroski55 2 927 Sep-12-2022, 10:19 PM
Last Post: Pedroski55
  PIL Image im.show() no show! Pedroski55 6 4,739 Feb-08-2022, 06:32 AM
Last Post: Pedroski55
  Jupiter Notebook does not show output line Renym 3 2,606 Apr-26-2020, 11:21 AM
Last Post: jefsummers
  Fatal error in launcher: Unable to create process using '"' rsmldmv 0 5,453 May-13-2019, 01:34 AM
Last Post: rsmldmv
  Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2 Newtopython123 10 31,162 Apr-25-2019, 07:30 AM
Last Post: banu0395
  help needed with python launcher fallenlight 3 3,344 Jan-19-2019, 01:06 PM
Last Post: snippsat
  MAC OS + Launcher : /usr/bin/pythonw Exh 0 2,797 Feb-12-2018, 11:10 PM
Last Post: Exh
  "Python launcher" required to run *.py scripts on Windows? pstein 3 11,213 Jun-27-2017, 02:33 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020