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

Can't quit from the jupyter console? #89

Closed
nations-Xiong opened this issue Jan 16, 2021 · 8 comments · Fixed by #90
Closed

Can't quit from the jupyter console? #89

nations-Xiong opened this issue Jan 16, 2021 · 8 comments · Fixed by #90

Comments

@nations-Xiong
Copy link

When I type quit();, it gives me a message like this:

[Condition of type JUPYTER:QUIT-CONDITION]

#<ENVIRONMENT {1006295BD3}>
   [Environment of thread #<THREAD "SHELL Thread" RUNNING {1005060213}>]


Backtrace:
 5: (SB-KERNEL::%SIGNAL )
 6: (ERROR )
 7: ((LAMBDA (ORIG &REST ARGS) :IN "/usr/share/maxima-jupyter/local-projects/maxima-jupyter/src/overrides.lisp") #<unused argument>)
 8: ((LAMBDA (&REST MAXIMA-JUPYTER::ARGS)))
 9: (MEVAL1 #<unavailable argument>)
 10: (MEVAL (($QUIT)))
 11: (MEVALARGS (NIL (($QUIT))))
 12: (MEVAL1 ((DISPLAYINPUT) NIL (($QUIT))))
 13: (MEVAL ((DISPLAYINPUT) NIL (($QUIT))))
 14: (MEVAL* ((DISPLAYINPUT) NIL (($QUIT))))
 15: (MAXIMA-JUPYTER::MY-EVAL ((DISPLAYINPUT) NIL (($QUIT))))
 16: (MAXIMA-JUPYTER::READ-AND-EVAL #<KERNEL {1003D14523}> #<STRING-INPUT-STREAM {1006075443}> T)
 17: ((:METHOD JUPYTER:EVALUATE-CODE (MAXIMA-JUPYTER::KERNEL T)) #<KERNEL {1003D14523}> quit();)
 18: (JUPYTER::HANDLE-EXECUTE-REQUEST #<KERNEL {1003D14523}> #<MESSAGE {1005DFB623}>)
 19: (JUPYTER::HANDLE-SHELL-MESSAGE #<KERNEL {1003D14523}> #<MESSAGE {1005DFB623}>)
 20: (JUPYTER::RUN-SHELL #<KERNEL {1003D14523}>)
 21: ((LAMBDA NIL :IN BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS))
 22: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
 23: ((FLET "WITHOUT-INTERRUPTS-BODY-11" :IN SB-THREAD::RUN))
 24: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
 25: ((FLET "WITHOUT-INTERRUPTS-BODY-4" :IN SB-THREAD::RUN))
 26: (SB-THREAD::RUN)
 27: ("foreign function: call_into_lisp")
 28: ("foreign function: funcall1")
@yitzchak
Copy link
Contributor

This is probably a bug in common-lisp-jupyter. I'll look into it.

You can also exit from the console with Ctrl+D usually.

@nations-Xiong
Copy link
Author

This is probably a bug in common-lisp-jupyter. I'll look into it.

You can also exit from the console with Ctrl+D usually.

I've tried. But Ctrl+D does not work either. The only to quit it is close the terminal.

@yitzchak
Copy link
Contributor

Are you running the terminal from inside JupyterLab or via an actual terminal?

@nations-Xiong
Copy link
Author

Are you running the terminal from inside JupyterLab or via an actual terminal?

Actual terminal. The command I run: jupyter console --kernel=maxima

@yitzchak
Copy link
Contributor

I have a potential fix in the works. Have to make some changes to common-lisp-jupyter also so it will not work until quicklisp updates unless you make put common-lisp-jupyter into local-projects.

@nations-Xiong
Copy link
Author

@yitzchak So what should I do?

@yitzchak
Copy link
Contributor

Submitted a PR. Once the PR is accepted you will need to either wait for quicklisp to update common-lisp-jupyter which is usually about once a month or clone yitzchak/common-lisp-jupyter into ~/quicklisp/local-projects

@robert-dodier
Copy link
Owner

Thanks, Tarn. I've accepted the PR.

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 a pull request may close this issue.

3 participants