[MacPorts] #48709: py-notebook: script to launch with jupyter is not created
#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
#48709: py-notebook: script to launch with jupyter is not created -----------------------------------+------------------------ Reporter: michelle.lynn.gill@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-notebook | -----------------------------------+------------------------ Changes (by mf2k@…): * cc: stromnov@… (removed) * keywords: ipython, jupyter => * owner: macports-tickets@… => stromnov@… -- Ticket URL: <https://trac.macports.org/ticket/48709#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#48709: py-notebook: script to launch with jupyter is not created -----------------------------------+------------------------ Reporter: michelle.lynn.gill@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-notebook | -----------------------------------+------------------------ Comment (by register@…): cc me too please! -- Ticket URL: <https://trac.macports.org/ticket/48709#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48709: py-notebook: script to launch with jupyter is not created -----------------------------------+------------------------ Reporter: michelle.lynn.gill@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-notebook | -----------------------------------+------------------------ Comment (by s.t.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 }}} -- Ticket URL: <https://trac.macports.org/ticket/48709#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48709: py-notebook: script to launch with jupyter is not created -----------------------------------+------------------------ Reporter: michelle.lynn.gill@… | Owner: stromnov@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-notebook | -----------------------------------+------------------------ Comment (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 -- Ticket URL: <https://trac.macports.org/ticket/48709#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts