Skip to content

Commit

Permalink
Disable SymPy Live
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiewooster authored and asmeurer committed Mar 23, 2022
1 parent 0ea93e2 commit 4b00be3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 51 deletions.
33 changes: 0 additions & 33 deletions doc/ext/sympylive.py

This file was deleted.

2 changes: 1 addition & 1 deletion doc/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.addons.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx_math_dollar',
'sphinx.ext.mathjax', 'numpydoc', 'sympylive', 'sphinx_reredirects',
'sphinx.ext.mathjax', 'numpydoc', 'sphinx_reredirects',
'sphinx.ext.graphviz', 'matplotlib.sphinxext.plot_directive',
'myst_parser'
]
Expand Down
3 changes: 0 additions & 3 deletions doc/src/guides/contributing/documentation-style-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ The following lists the processing tools:
* ``matplotlib.sphinxext.plot_directive``: Provides directives for included
matplotlib generated figures in reStructuredText. See
https://matplotlib.org/devel/plot_directive.html for more info.
* ``sympylive``: Adds a button on each example in the HTML documentation that
opens the example in SymPy Live. *No bearing on documentation source
format.*

Everything supported by the above processing tools is available for use in the
SymPy documentation, but this style guide supersedes any recommendations made
Expand Down
24 changes: 12 additions & 12 deletions doc/src/tutorial/preliminaries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,36 @@ Installation
You will need to install SymPy first. See the :ref:`installation guide
<installation>`.

Alternately, you can just use the SymPy Live Sphinx extension to run the code
*Alternately, you can just use the SymPy Live Sphinx extension to run the code
blocks in the browser. For example, click on the green "Run code block in
SymPy Live" button below
SymPy Live" button below*

>>> from sympy import *
>>> x = symbols('x')
>>> a = Integral(cos(x)*exp(x), x)
>>> Eq(a, a.doit())
Eq(Integral(exp(x)*cos(x), x), exp(x)*sin(x)/2 + exp(x)*cos(x)/2)

The SymPy Live shell in the bottom corner will pop up and evaluate the code
block. You can also click any individual line to evaluate it one at a time.
*The SymPy Live shell in the bottom corner will pop up and evaluate the code
block. You can also click any individual line to evaluate it one at a time.*

The SymPy Live shell is a fully interactive Python shell. You can type any
*The SymPy Live shell is a fully interactive Python shell. You can type any
expression in the input box to evaluate it. Feel free to use it throughout
the tutorial to experiment.
the tutorial to experiment.*

To show or hide the SymPy Live shell at any time, just click the green button
on the bottom right of the screen.
*To show or hide the SymPy Live shell at any time, just click the green button
on the bottom right of the screen.*

By default, the SymPy Live shell uses `\mathrm{\LaTeX}` for output. If you want the
*By default, the SymPy Live shell uses `\mathrm{\LaTeX}` for output. If you want the
output to look more like the output in the documentation, change the
output format to ``Str`` or ``Unicode`` in the settings.
output format to ``Str`` or ``Unicode`` in the settings.*

If you wish to modify an example before evaluating it, change the evaluation
*If you wish to modify an example before evaluating it, change the evaluation
mode to "copy" in the SymPy Live settings. This will cause clicking on an
example to copy the example to the SymPy Live shell, but not evaluate it,
allowing you to change it before execution. You can also use the up/down
arrow keys on your keyboard in the input box to move through the shell
history.
history.*

The SymPy Live shell is also available at http://live.sympy.org, with extra
features, like a mobile phone enhanced version and saved history.
Expand Down
4 changes: 2 additions & 2 deletions doc/src/tutorial/simplification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,8 @@ example
>>> orig_frac = frac = cancel(list_to_frac(l))
>>> del l

Click on "Run code block in SymPy Live" on the definition of ``list_to_frac()``
above, and then on the above example, and try to reproduce ``l`` from
*Click on "Run code block in SymPy Live" on the definition of ``list_to_frac()``
above, and then o* In SymPy, on the above example, try to reproduce ``l`` from
``frac``. I have deleted ``l`` at the end to remove the temptation for
peeking (you can check your answer at the end by calling
``cancel(list_to_frac(l))`` on the list that you generate at the end, and
Expand Down
1 change: 1 addition & 0 deletions release/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ decorator==5.0.9
docutils==0.17.1
filelock==3.0.12
flatbuffers==1.12
furo==
gast==0.4.0
google-auth==1.35.0
google-auth-oauthlib==0.4.5
Expand Down

0 comments on commit 4b00be3

Please sign in to comment.