Skip to content

Commit

Permalink
Fix JuliaLang#363, the if statement should only be necessary when jup…
Browse files Browse the repository at this point in the history
…yter is not in path as suggested in jupyter/notebook#448
  • Loading branch information
dhoegh committed Sep 27, 2015
1 parent 855235f commit bfc4cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ copy_config("logo-32x32.png", juliakspec)
copy_config("logo-64x64.png", juliakspec)

eprintln("Installing julia kernelspec $spec_name")
if basename(jupyter) == "jupyter"
if basename(jupyter) == "jupyter" && dirname(jupyter) == abspath(Conda.SCRIPTDIR)
# Remove the commit that added this when https://github.com/jupyter/notebook/issues/448 is closed
run(`$jupyter-kernelspec install --replace --user $juliakspec`)
else
Expand Down
2 changes: 1 addition & 1 deletion src/IJulia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ end
export notebook
function notebook(jupyter=jupyter)
inited && error("IJulia is already running")
if basename(jupyter) == "jupyter"
if basename(jupyter) == "jupyter" && dirname(jupyter) == abspath(Conda.SCRIPTDIR)
# Remove the commit that added this when https://github.com/jupyter/notebook/issues/448 is closed
run(`$jupyter-notebook`)
else
Expand Down

0 comments on commit bfc4cad

Please sign in to comment.