[MacPorts] #48709: py-notebook: script to launch with jupyter is not created
MacPorts
noreply at macports.org
Tue Aug 25 08:14:23 PDT 2015
#48709: py-notebook: script to launch with jupyter is not created
----------------------------------+--------------------------------
Reporter: michelle.lynn.gill@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: ipython, jupyter | Port: py-notebook
----------------------------------+--------------------------------
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.
--
Ticket URL: <https://trac.macports.org/ticket/48709>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list