This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; This script can be loaded during emacs initialization to automatically | |
;;;; send `kill-region' and `kill-ring-save' regions to your system clipboard. | |
;;;; The OSC 52 terminal escape sequence is used to transfer the selection from | |
;;;; emacs to the host terminal. | |
;;;; It is based off of the osc52.el copyright the Chromium OS authors, but | |
;;;; was modified to add support for tmux, graphical displays, and | |
;;;; multi-byte strings. | |
;;;; It works in hterm, xterm, and other terminal emulators which support the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sympy | |
def custom_latex_printer(exp, **options): | |
from google.colab.output._publish import javascript | |
url = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/latest.js?config=default" | |
javascript(url=url) | |
return sympy.printing.latex(exp, **options) | |
sympy.init_printing(use_latex="mathjax", latex_printer=custom_latex_printer) |