Need help with iwolfram?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mmatera
143 Stars 26 Forks 219 Commits 8 Opened issues

Description

A jupyter kernel for Wolfram Mathematica

Services available

!
?

Need anything else?

Contributors list

# 166,626
Jupyter...
CSS
TeX
Shell
197 commits
# 496,780
CSS
HTML
Jupyter...
2 commits
# 303,121
Jupyter...
CSS
C
Shell
1 commit
# 131,240
The Jul...
jupyter
knitr
repl
1 commit
# 26,895
solidit...
elisp
gnu-ema...
bytecod...
1 commit
# 224,674
Jupyter...
CSS
Shell
calculu...
1 commit

IWolfram

Jupyter Interface for Wolfram Mathematica / Mathics Notebooks based on Metakernel. The idea is to have a common kernel for both versions of the language with a compatible notebook form.

So far this is a proof of concept.

Installing

$ pip install -e .
...
Installing collected packages: wolfram-kernel
Running setup.py develop for wolfram-kernel
Successfully installed wolfram-kernel

Running

Launch by running this command in a terminal

$ jupyter notebook --kernel=wolfram_kernel

This will launch the Jupyter file explorer in a browser window. Navigate to the

examples
folder and open the example worksheet called
Examples and tests.ipynb
.

Contributing

Please feel encouraged to contribute to this project! Create your own fork, make the desired changes, commit, and make a pull request.

Build Status

License

IWolfram is released under the GNU General Public License (GPL).

Interactive 3D Graphics

Basic support for interactive 3D graphics is implemented. The implementation is based on Three.js and on the interface developed by Angus Griffith for the Mathics Project.

About graphics

Currently, IWolfram has almost full support for graphics when using the original Wolfram Mathematica as the backend, and a very limited support when using Mathics. On the other hand, to generate image files, Wolfram Mathematica requires that the user have a graphic terminal open on the server. Worse, if a graphic server is not available, any call to a graphic command crashes the IWolfram kernel. If we run the Jupyter Notebook server on the same machine we are running the front end this is not a problem, but it can be if the server runs in a remote machine. To overcome this issue, a workaround is to use the Xvfb xorg kernel to simulate a graphic server. To do this, we need to install Xvfb on the computer where the Jupyter Notebook server will run, and to set

xvfb-run -a -s "-screen 0 640x480x24" /MathKernel
as the the kernel backend invocation command.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.