Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure jupyter dir is on PATH #62

Merged
merged 1 commit into from
Nov 10, 2015
Merged

ensure jupyter dir is on PATH #62

merged 1 commit into from
Nov 10, 2015

Conversation

minrk
Copy link
Member

@minrk minrk commented Sep 25, 2015

before dispatching to subcommands

This addresses the case when jupyter is executed by absolute path and its dir is not on PATH, which would result in all subcommands not being found.

closes jupyter/notebook#448

before dispatching to subcommands

This addresses the case when jupyter is executed by absolute path and its dir is not on PATH,
which would result in all subcommands not being found.
@bbergman
Copy link

Weird that I JUST hit this today when I tried to create an init.d entry for notebook. Thankfully, the workaround works. :)

stevengj added a commit to JuliaLang/IJulia.jl that referenced this pull request Oct 6, 2015
…puts quotes around Python path, and jupyter-notebook is a .exe file
minrk added a commit that referenced this pull request Nov 10, 2015
ensure jupyter dir is on PATH
@minrk minrk merged commit 19d6388 into jupyter:master Nov 10, 2015
@minrk minrk deleted the self-path branch November 10, 2015 12:58
@minrk minrk added this to the 4.0.7 milestone Nov 10, 2015
@EvanZ
Copy link

EvanZ commented Feb 16, 2016

Which dir?

root@5094eba8037a:/# jupyter --paths
config:
/root/.jupyter
/usr/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/root/.local/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/root/.local/share/jupyter/runtime

@takluyver
Copy link
Member

The directory where the Jupyter command itself is. See dirname $(which jupyter).

@ibrahim5253
Copy link

ibrahim5253 commented Feb 17, 2017

I am on a server (without sudo access) and facing this issue. But ipython notebook works fine. Also, jupyter's dir (/usr/local/bin) is in the PATH variable. What can be done?

@takluyver
Copy link
Member

Where is the jupyter-notebook script?

@ibrahim5253
Copy link

I doubt there exists any. which jupyter-notebook returns nothing.

@takluyver
Copy link
Member

If that doesn't exist, then jupyter notebook won't work. You may be able to install the notebook without sudo access, depending on how the server is configured.

@stevengj
Copy link

stevengj commented Jan 3, 2019

This still failing for me in Windows 8: when I run \somepath\jupyter.exe notebook it fails with jupyter-notebook not found, but when I add \somepath to the PATH environment variable it works (actually spelled Path, but Windows environment vars should be case-insensitive case-preserving). It also works if I run \somepath\jupyter-notebook.exe directly.

jupyter --version prints 4.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'notebook' is not a Jupyter command
6 participants