Opened 9 years ago
Last modified 8 years ago
#48709 new defect
py-notebook: script to launch with jupyter is not created
Reported by: | michelle.lynn.gill@… | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | petrrr, 9peppe (Giuseppe C), arthur.michaut@… | |
Port: | py-notebook |
Description
The Jupyter version of notebook does not create a command line launch script and thus will not launch from the command line with jupyter notebook
.
Other subports in this new family, such as py-nbconvert, have a script associated with them called jupyter-nbconvert-2.7
and jupyter-nbconvert-3.4
(for python 2.7 and 3.4), that resides in /Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/$pythonversion/bin/jupyter
and is linked to in MacPorts bin
directory.
The analogous version of this script, presumably called jupyter-notebook-$pythonversion
for the notebook, is nowhere to be found in my installation. When I create such a script (see below) and name/link it appropriately, the notebook will launch from the command line as expected.
Here is the script that allows me to launch notebook for python 2.7. I borrowed most of this code from what is installed by conda for notebook.
#!/Volumes/Files/macports/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python if __name__ == '__main__': import sys from notebook.notebookapp import main sys.exit(main())
This is a completely fresh installation of MacPorts as I had to setup a new computer yesterday. Thus, there shouldn't be any IPython 3 leftovers causing this issue. Also of note is that my MacPorts installation is in a custom location, so all of my ports are compiled from source.
Change History (7)
comment:1 Changed 9 years ago by mf2k (Frank Schima)
Cc: | stromnov@… removed |
---|---|
Keywords: | ipython jupyter removed |
Owner: | changed from macports-tickets@… to stromnov@… |
comment:2 Changed 9 years ago by petrrr
Cc: | petr@… added |
---|
comment:4 Changed 9 years ago by essandess (Steve Smith)
cc me.
This command works:
jupyter-2.7 notebook-2.7
But there should be something like
sudo port select --set jupyter jupyter27
to allow the simple command
jupyter notebook
comment:5 Changed 9 years ago by suresh.sivanandam@…
This command does not work for me:
sudo port select --set jupiter jupyter27
Running jupyter-2.7 does work, but it looks like port select does not have jupyter listed.
If I run sudo port select --summary, I get this:
Name Selected Options
======== ===
clang none mp-clang-3.3 none
cython none cython27 none
gcc none mp-gcc5 none
ipython none py27-ipython none
ipython2 none py27-ipython none
llvm none mp-llvm-3.3 none
nosetests none nosetests27 none
pip pip27 pip27 none
python python27 python26-apple python27 python27-apple python34 none
python2 none python27 none
python3 none python34 none
sphinx none py27-sphinx none
Cc Me!