Hi All,

Context: Thanks to developments in the JavaScript world, we can now run 
Python in the browser. See the projects emscripten <https://emscripten.org/>, 
Pyodide <https://pyodide.org/en/stable/>, and JupyterLite 
<https://jupyterlite.readthedocs.io/en/latest/>/Pyolite 
<https://jupyterlite.readthedocs.io/en/latest/kernels/pyolite.html> for 
more about this. Essentially, modern web browsers are capable of running 
the real CPython interpreter, and not only that but most pure-Python 
packages can be imported 
<https://pyodide.org/en/stable/usage/api/micropip-api.html> and run without 
issues!

Several SymPy users proposed the idea of using this new functionality to 
create a new SymPy shell that runs in the browser. I'm happy to announce 
this idea is now a reality. Navigate to this URL 
*https://www.sympy.org/en/shell.html 
<https://www.sympy.org/en/shell.html>* to check it out.

Some notes, in point form, about this project:

   - based on latest version of SymPy (the version on pypi)
   - initial load takes between 15 and 30 seconds (on desktop)
   - running commands is very fast after initial load
   - supports modern web browsers like Firefox and Chrome
   - works on some mobile browsers (more testing needed)


Many thanks to Jeremy Tuloup who showed how the JupyterLite REPL can be 
customized to create a SymPy shell.

The new SymPy shell on the sympy.org website is an experiment that allows 
us to test the new JupyterLite-based REPL and iron out any edge cases, with 
the goal of eventually using the same approach on https://live.sympy.org/ 
(which has been becoming increasingly difficult to maintain and keep up to 
date).

I invite you all to try out the new shell 
<https://www.sympy.org/en/shell.html> by running your favorite SymPy 
calculations (see bit.ly/sympyjstest for examples). If you encounter 
problems, bugs, or other unexpected behavior during testing, please add a 
comment to this issue: https://github.com/sympy/sympy.github.com/issues/176


 - Ivan


PS: For more background info about this work, see this initial discussion 
here <https://github.com/sympy/sympy-live/issues/83> and PRs 169 
<https://github.com/sympy/sympy.github.com/pull/169> and 174 
<https://github.com/sympy/sympy.github.com/pull/174>.



-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/46a09c63-31bd-4e1d-9257-0644074baaacn%40googlegroups.com.

Reply via email to