20
$\begingroup$

Shortly

One can connect Wolfram Engine / Kernel to the Jupyter notebook thanks to github / WRI / WLforJ and following manuals: How to add a front-end to the free Wolfram Engine?

Can I rotate Graphics3D @ Sphere[] generated in Jupyter notebook interface?

Background

The question was raised here. I assumed the answer is no. But while looking for an answer to TraditionalForm-like typesetting in Jupyter notebook I found a nice feature.

$\endgroup$
3
  • 1
    $\begingroup$ How do you do it without cloud I am using wolfram engine $\endgroup$ Aug 15, 2020 at 17:05
  • 1
    $\begingroup$ One could try to use this project as well WolframJSFrontend. It is still in alpha stage, but quite usable $\endgroup$ Feb 10, 2023 at 10:01
  • $\begingroup$ @KirillVasin please add an answer with a short steps/description $\endgroup$
    – Kuba
    Feb 10, 2023 at 12:19

2 Answers 2

21
$\begingroup$

Wolfram Kernel <-> Jupyter loop related definitions can be read from files in

https://github.com/WolframResearch/WolframLanguageForJupyter

One can learn that within a loop a special wrapper is defined: Interact.

When connected to the Wolfram Cloud, input that is wrapped with Interact will be deployed to the Cloud and embedded in the jupyter notebook:

enter image description here

$\endgroup$
4
  • $\begingroup$ Very cool! I only recently learned that this could be possible, but I didn't expect someone to implement it this quickly. Kudos! $\endgroup$ Jun 5, 2019 at 7:33
  • $\begingroup$ @SjoerdSmit I didn't implement it :P I just found it :) $\endgroup$
    – Kuba
    Jun 5, 2019 at 7:35
  • $\begingroup$ Kudos for finding it :P. $\endgroup$ Jun 5, 2019 at 8:13
  • $\begingroup$ Strange, this didn't work for me. Do you have to enable something? $\endgroup$ Sep 15, 2020 at 21:39
6
$\begingroup$

This is not a Jupyter-based solution, but might be still useful.

WolframJSFrontned

enter image description here

enter image description here

enter image description here

The project is based purely on Wolfram Engine/ Kernel and minimal notebook interface written in JS. It brings similar experience with cells, interactive Graphics (recreated using Three.js and Ploty.js), editable output cells and the paradigm of Mathematica, where everything is a syntax sugar. Exporting to standalone .html file is also possible. Web server is written in Wolfram Language and connects via websockets to the very primitive Wolfram language JS interpreter. The architecture is flexible and easy to expand, adding a new functions (js representation s for the graphical functions) is not a big deal.

It is still is early alpha stage and actively developing. Manipulate and other dynamics are on the way.

Use git clone and run a single wolframscript file via CMD, after that - just open http://127.0.0.1:8090

Hope it can help you

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.