Replies: 2 comments 6 replies
-
Quarto can render value of SymPy objects using LaTeX. When you do |
Beta Was this translation helpful? Give feedback.
-
From the information that you provide, IPython kernel is messing things a little bit. Need to found how to work around it.
They are equivalent.
I was saying "based on the Markdown file ..." I didn't execute the full pipeline because I only have quarto at the computer in my office. I will try to run the full pipeline earlier next week. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I am trying to render Jupyter Lab notebook with Quatro to html. I am newbie both in Jupyter and Quatro (and in python too). This all is my first steps in modern programming for computations.
When I using SymPy Python library for symbolic mathematics, math output in Jupyter Lab itself and in html file, generated by Jupyter
File->Save and Export Notebook As->HTML
menu item both contains beautiful vector math formulas. But when I generate html by Quarto, formulas inserted as low-resolution png images or even ASCII-art.My question: how can i achieve beautiful vector formulas in Quarto-generated html file, as I seen in Jupyter Lab notebook or in html file, exported by it?
I found similar problem with some kind of solution here, but my skills so low, that I can't follow the recipe. I will be glad if someone can clarify, what changes should i make in my (minimal) file (that I will provide below) to follow that recipe. Also I see, that those solution makes python code in notebook hard to write and read, and hoping to find more transparent and direct solution.
To clarify, I decided use Quarto to supply my final documents with such things, as bibliography, footnotes, table of contents, cross references, etc. But in a same time I want to have a simple interactive Jupyter Notebook ipynb file to exchange with others etc.
This is the link to Google Drive folder, where I upload example of ipynb file, zipped html+png output made by Quatro, and html output, made by Jupyter Lab Export.
The Quatro command is
quarto.exe render Jupyter_SymPy_Quarto_math_output.ipynb
. The format html specified in JAML section of ipynb file. The output of command isHere is the screenshot of Jupyter-generated html:

Here is the screenshot of Quarto-generated html:

I am using:
Windows 10;
Quarto 1.1.175;
Python 3.9.12, Jupyter Lab 3.3.2, sympy 1.10.1, pandoc 2.12, all installed and running with Anaconda Navigator 2.2.0.
Thanks for your attention to my problem.
Beta Was this translation helpful? Give feedback.
All reactions