79088326

Date: 2024-10-15 03:38:12
Score: 1.5
Natty:
Report link

This can be done with the jupyprint package: https://pypi.org/project/jupyprint/

To print "live" variables in LaTeX/markdown, you can use something like the following code:

import jupyprint as jp

x=1
y=0
n=10

jp.jupyprint(f"$ {complex(x, y)}" + " ^ \\frac{" + f"{1}" + "}{" + f"{n}" + "} $")

Here is how the output looks.

There is a full demo here: https://github.com/pxr687/jupyprint/blob/main/jupyprint_demo.ipynb

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: pxr687