Create latex output for Jupyter notebooks
See original GitHub issuePR #276 adds latex output for transfer functions. It would be nice to add this for other LTI types as well (particularly StateSpace objects). Having the output match the text approximation in __repr__ seems like a good first cut at format to use.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (14 by maintainers)
Top Results From Across the Web
Is it possible to show `print` output as LaTeX in jupyter ...
As I wrote earlier, I am using jupyter notebook, so I can use $ operators in markdown cells to create LaTeX formulas. My...
Read more >Learn How to Write Markdown & LaTeX in The Jupyter Notebook
Even web developers, now, use Markdown then convert it to HTML using some websites. • Headings. You make titles using hashtags # ....
Read more >How to use Latex in Jupyter notebook - Linux Hint
One of the most popular is Jupyter Notebook that uses MathJax to render the Latex syntax inside the markdown/HTML. To use LaTeX in...
Read more >Copy Output table in Jupyter for LaTex Document - TeX
I am able to put code onto my LaTex Document, but I wanted to know if it is possible to import my output...
Read more >(some) LaTeX environments for Jupyter notebook
(some) LaTeX environments for Jupyter notebook¶ · support for some LaTeX commands within markdown cells, e.g. \textit , \textbf , \underline . ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

A short-term workaround is to remove the related method after importing python-control:
My understanding is that
displayjust a way to force output of a variable, so IPython cellsand
are equivalent.
A switch back to “plain old repr” for bigger systems seems like a reasonable idea. We could add a
config.defaults['statesp.latex_maxsize']and if either (nstates + ninputs) or (nstate + noutputs) > latex_maxsize, have_repr_latex_return None. One could then setlatex_maxsizeto -1 to disable the LaTeX display altogether. See https://ipython.readthedocs.io/en/stable/config/integrating.htmlBranch and gist updated. User can select from ‘partitioned’ and ‘separate’ types, and specify format string.
Static-gain (“stateless”) systems are special-cased.
How should configuration options be documented?
I think this should have some minimal testing, though I’ll probably use a “gold image” approach, i.e., generate reference strings using the implementation.