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

Maxima with Anaconda #88

Open
Gabrielj96 opened this issue Dec 13, 2020 · 6 comments
Open

Maxima with Anaconda #88

Gabrielj96 opened this issue Dec 13, 2020 · 6 comments

Comments

@Gabrielj96
Copy link

Gabrielj96 commented Dec 13, 2020

I have installed Maxima packages in Anaconda, but I don't know how to run it with Jupyter Notebook. Can you help me?

https://anaconda.org/conda-forge/maxima

image

Captura de tela de 2020-12-13 17-57-29

In kernel appears only Python 3

@robert-dodier
Copy link
Owner

Hi Gabriel, thanks for your interest in maxima-jupyter. The installation instructions for maxima-jupyter are a little bit confusing, sorry about that. I've been meaning to try to make it clearer.

It appears you are working on a Linux system, is that correct? If so, my advice is to remove the existing Maxima installation which was installed by Anaconda, and instead build Maxima from source code, using SBCL. You will need to install SBCL first, then obtain a maxima tar.gz from the Sourceforge download page, then build and install Maxima via the usual commands:

$ ./configure --enable-sbcl
$ make
$ make install

At that point you need to follow the instructions in the readme for maxima-jupyter to create an image containing maxima-jupyter, and configure Jupyter to use that image. Can you please try installing SBCL and Maxima as I mentioned, and let me know how it turns out, and we can go from there.

@Gabrielj96
Copy link
Author

Gabrielj96 commented Dec 14, 2020

Okay, now I have Maxima SBCL.

image

I download maxima-jupyter folder from github but what I do with this folder?

@robert-dodier
Copy link
Owner

Before we go farther, what is the output from entering

:lisp (require "asdf")

at the input prompt in Maxima?

@Gabrielj96
Copy link
Author

image

@robert-dodier
Copy link
Owner

OK, good, it appears that Maxima can load ASDF, which is required for maxima-jupyter.

Due to time constraints, I can't go into details about installing maxima-jupyter right now. However, the general outline of what I want to recommend to you is to follow the instructions in the README.md as follows:

(1) install Quicklisp if it is not already installed. See: https://beta.quicklisp.org
(2) install Jupyter if it is not already installed. Example: python3 -m pip install jupyter
(3) Follow instructions in "Method 1. Maxima-Jupyter binary executable installation (Old Method)"

Hope this helps. I'm sorry I can't be more helpful at this time.

@ghost
Copy link

ghost commented Dec 23, 2020

I got the exact same error:

compilation unit aborted caught 1 fatal ERROR condition

For me, the problem was QuickLisp wasn't properly installed.
(I had mistakenly installed it as a Ubuntu deb package)

Solution:
Install QuickLisp manually as specified on the Quicklisp site:

curl -O https://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp
* (quicklisp-quickstart:install)
* (ql:add-to-init-file)

Then:
Run the commands from the maxima-jupyter Readme.md:

maxima
load("load-maxima-jupyter.lisp");
jupyter_install();

Maxima is working now in Jupyter Notebooks. Many thanks for this great utility.

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

No branches or pull requests

2 participants