Closed ZelphirKaltstahl closed 7 years ago
Hi,
I think you have a too old version of SBCL ... I am using 1.3.7 and 1.3.8. is already available. Please tell me if it then works...
Instructions here on Github say:
either SBCL 1.2.x or above (with native threads enabled)
I have:
This is SBCL 1.2.11-1.fc22, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
Either there is a bug or the instructions are not correct ; ) I'll check if I can get a newer version running. I'd really like to have the Jupyter kernel so that I can use the useful interface, instead of that annoying SBCL, where I cannot even press arrow keys to navigate through previously entered lines : /
Yes you're right sorry... Looking at sbcl output, it seems that libzmq is not installed. The quicklisp package pzmq requires it, I should probably explain this in the readme... BTW you can use rlwrap sbcl
to have a nicer repl...
@fredokun I tried compiling a newer version of SBCL, but was unable to, because the instructions for compilation are not correct on their page and it seems files and folders needed for compilation are missing from the source code or at least that's what it is telling me when I run the sh install.sh
. Then I looked up alternative REPLs for Common Lisp. CCL had the same annoying behavior as SBCL. I found CLISP in the repositories of my Fedora 22, so I installed that one and tried it. Seems to work better than the other two and offers me functionality of the arrow keys like in a Python REPL. Also it is free software as well.
I am willing to give SBCL another chance and to try and install needed dependencies for your Jupyter kernel to work.
You're saying I need to find libzmq
in the repos and install it in my system? (I seem to remember that this is also needed for compiling Python, but I could be wrong.)
I've also tried rlwrap sbcl
, inside the SBCL REPL as well as simply in a terminal, but neither works. I guess I don't have rlwrap
?
You should be able get a pre-compiled binary for SBCL from http://sbcl.org/platform-table.html . That should sort out that issue.
For libzmq all you need to do is install your Linux distribution's development package for zmq. So for Ubuntu for instance apt-get install libzmq-dev.
Regarding rlwrap, you don't run that from inside the REPL you run the REPL inside rlwrap. You do have to have it installed, just type rlwrap at the shell and you will find out if you do. So from the shell run rlwrap sbcl
On Thu, Aug 11, 2016 at 9:13 PM, Zelphir Kaltstahl <notifications@github.com
wrote:
@fredokun https://github.com/fredokun I tried compiling a newer version of SBCL, but was unable to, because the instructions for compilation are not correct on their page and it seems files and folders needed for compilation are missing from the source code or at least that's what it is telling me when I run the sh install.sh. Then I looked up alternative REPLs for Common Lisp. CCL had the same annoying behavior as SBCL. I found CLISP in the repositories of my Fedora 22, so I installed that one and tried it. Seems to work better than the other two and offers me functionality of the arrow keys like in a Python REPL.
I am willing to give SBCL another chance and to try and install needed dependencies for your Jupyter kernel to work.
You're saying I need to find libzmq in the repos and install it in my system? (I seem to remember that this is also needed for compiling Python, but I could be wrong.)
I've also tried rlwrap sbcl, inside the SBCL REPL as well as simply in a terminal, but neither works. I guess I don't have rlwrap?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fredokun/cl-jupyter/issues/22#issuecomment-239338505, or mute the thread https://github.com/notifications/unsubscribe-auth/AACFkGeCgPaMpXRV1fw6xojBlpFtXehTks5qe8jIgaJpZM4JhV6b .
The precompiled version of SBCL works.
In the repositories of my fedora I found `zeromq-devel, but that is already installed.
Thanks for the info about rlwrap
, I didn't know such an "in between" tool existed!
Ok, I got it running now. softlinking the shell script worked to make the installer find sbcl, since it is not installed from the repos:
ln -s /path/to/sbcl /usr/bin/sbcl
and after that I was able to run
jupyter notebook
in my virtualenv : ) and I can run the code in the example notebook, yay!
For what it's worth: I get some kind of warning in the shell:
WARNING: [Shell] message type 'comm_open' not (yet ?) supported, skipping...
Not sure what that means.
Glad to hear it. I have some notebooks up at https://github.com/mmaul/clml.tutorials https://github.com/mmaul/clml.tutorials if you're interested..
On Fri, Aug 12, 2016 at 2:24 PM, Zelphir Kaltstahl <notifications@github.com
wrote:
Ok, I got it running now. softlinking the shell script worked:
ln -s /path/to/sbcl /usr/bin/sbcl
and after that I was able to run
jupyter notebook
in my virtualenv : ) and I can run the code in the example notebook, yay!
For what it's worth: I get some kind of warning in the shell:
WARNING: [Shell] message type 'comm_open' not (yet ?) supported, skipping...
Not sure what that means.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fredokun/cl-jupyter/issues/22#issuecomment-239523152, or mute the thread https://github.com/notifications/unsubscribe-auth/AACFkLtBbcNWWw_oYDxGg1UhGzaLm9pKks5qfLp6gaJpZM4JhV6b .
@mmaul definitely interested in ML in general, although I am still very much learning Common LISP. Might take a while until I can understand complex stuff. Thanks!
I guess this issues could be closed?
I think so too.
You're right ... was a little busy...
Just learning LISP, so I have no idea what could be wrong here:
sbcl --load cl-jupyter.lisp