rmculpepper / iracket

Jupyter kernel for Racket
BSD 3-Clause "New" or "Revised" License
95 stars 14 forks source link

Cannot find jupyter executable #6

Closed kerwinxu closed 4 years ago

kerwinxu commented 4 years ago

kerwin@XUHENGXIAO D:\Program Files\Racket
$ raco iracket install
Warning: found different racket.exe command in executable search path
found in search path: "D:\Program Files\Racket\.\racket.exe"
currently executing: "D:\Program Files\Racket\racket.exe"
Cannot find jupyter executable.

kerwin@XUHENGXIAO D:\Program Files\Racket
$ jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.0.3
qtconsole : 4.7.5
ipython : 7.16.1
ipykernel : 5.3.2
jupyter client : 6.1.3
jupyter lab : 2.1.4
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3

kerwinxu commented 4 years ago

kerwin@XUHENGXIAO D:\Program Files\Racket $ raco iracket install Warning: found different racket.exe command in executable search path found in search path: "D:\Program Files\Racket.\racket.exe" currently executing: "D:\Program Files\Racket\racket.exe" Cannot find jupyter executable.

kerwin@XUHENGXIAO D:\Program Files\Racket $ jupyter --version jupyter core : 4.6.3 jupyter-notebook : 6.0.3 qtconsole : 4.7.5 ipython : 7.16.1 ipykernel : 5.3.2 jupyter client : 6.1.3 jupyter lab : 2.1.4 nbconvert : 5.6.1 ipywidgets : 7.5.1 nbformat : 5.0.7 traitlets : 4.3.3

I read source code , found below

(define (cmd:check args) (command-line

:program (short-program+command-name)

:argv args

:once-any

[("--jupyter-exe") jupyter "Use given jupyter executable" (use-jupyter-exe jupyter)]

:args ()

(with-handlers ([exn:fail:user? (lambda (e) (printf "~a\n" (exn-message e)))]) (do-check-iracket))))

--jupyter-exe !!!

so : raco iracket install --jupyter-exe "D:\Anaconda3\Scripts\jupyter.exe" , it work well .