How to build with an existing python3 and jupyter / jupyterhub setup?
Closed this issue · 10 comments
Hi, I was wondering if you could provide a little more instruction as to how to build the maxima / CL-jupyter lisp image? I have never used lisp before, so I think the concept may be foreign to me.
I have a working jupyterhub and python setup. It would be great if there was a way to download/build this maxima plugin for use in notebooks. Sorry in advance if I am being unclear.
hanks.
Okay I see! Thanks for the clarification. Any idea where I could get a Clozure CL maxima binary? (Sorry I'm pretty un-knowledgable, but I see some binaries listed here: http://maxima.sourceforge.net/download.html ). Or, maybe that does not matter and I can use any of the maxima binaries listed?
Hi, I am having pretty much the same problem: I am trying to install the maxima kernel on an ubuntu 18.04 box.
I tried both approaches: to build maxima with ccl64 (following the instructions in the Dockerfile at https://gitlab.com/alessandro.dibella/docker/jupyter-maxima), and also trying to use an interactive session with the maxima installed by ubuntu àckage system. Both failed.
In the first approach I got an error message complaining about the umber of parameters passed to the top level function, and in the second one the lisp scripts where not ok for the lisp used in that maxima (I think it uses ccl).
I also have no experience with lisp, so I don't feel able to solve it by hand.
Is there any chance that you could provide a step by step guide to install this kernel?
Miguel, I can't tell what's going on, you'll have to provide more information. Ideally you could paste in the error messages verbatim, and also provide more information about the environment. If you have a running Maxima executable (which you built or installed from a package), please also report the output of build_info();
. Also report anything else that seems relevant.
Ok, I tried to do a restart from zero. I did the following:
- Download ccl and installk
ccl
andccl64
to/usr/local/bin
- Download maxima 5.41 source code
- Inside maxiam directory, run
configure --with-ccl64=ccl64 --enable-ccl64
(that got me some executable files, in particular, a file called maxima-local in the current directory) - Tried to install quicklisp. downloaded it and from a maxima session I did:
(%i1) :lisp (load "quicklisp.lisp")
And I got
==== quicklisp quickstart 2015-01-28 loaded ====
To continue with installation, evaluate: (quicklisp-quickstart:install)
For installation options, evaluate: (quicklisp-quickstart:help)
/home/ubuntu/maxima-5.41.0/quicklisp.lisp
So I tried :lisp (quicklisp-quickstart:install)
And then I got this message
==== quicklisp quickstart 2015-01-28 loaded ====
To continue with installation, evaluate: (quicklisp-quickstart:install)
For installation options, evaluate: (quicklisp-quickstart:help)
/home/ubuntu/maxima-5.41.0/quicklisp.lisp
(%i1) :lisp (quicklisp-quickstart:install)
; Fetching #<URL "http://beta.quicklisp.org/client/quicklisp.sexp">
; 0.82KB
==================================================
838 bytes in 0.05 seconds (17.45KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/client/2017-03-06/quicklisp.tar">
; 250.00KB
==================================================
256,000 bytes in 0.14 seconds (1733.91KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/client/2015-09-24/setup.lisp">
; 4.94KB
==================================================
5,054 bytes in 0.04 seconds (117.00KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/asdf/2.26/asdf.lisp">
; 194.07KB
==================================================
198,729 bytes in 0.12 seconds (1638.34KB/sec)
Maxima encountered a Lisp error:
MK:DEFSYSTEM: missing system ASDF.
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.
So I guess I am doing something very wrong.
Ok, I finally managed to create a valid maxima image, and it works. I didn't do the codemirror/pygments patching, so I don't have code highlighting, but I can live with that.
However, I have a problem with graphics: they just don't show up in the notebook (I am using jupyterlab through jupyterhub, so that might be the problem)
@miguelmarco Did you look at the sample notebook Plots.ipynb? You need to send the output to a file by setting the appropriate plot option. i.e. set_plot_option([svg_file, "maxplot.svg"])$
Yes, I tried that and didn¡t work.... but it actually worked using png instead of svg.
I'm closing this issue, but if anyone is still having any problem, I encourage them to open a new issue for that.