Skip to content

Instantly share code, notes, and snippets.

View Artem-B's full-sized avatar
⚠️
Busy-ish. Will be slow to respond.

Artem Belevich Artem-B

⚠️
Busy-ish. Will be slow to respond.
View GitHub Profile
@Artem-B
Artem-B / windows_cc_toolchain_config.bzl
Created December 13, 2019 19:33
external/local_config_cc/windows_cc_toolchain_config.bzl
PS C:\work\bazel-out> cat external/local_config_cc/windows_cc_toolchain_config.bzl
# Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@Artem-B
Artem-B / colab-latex.py
Created September 30, 2019 06:35 — forked from nikibobi/colab-latex.py
Add LaTeX support to a Colab notebook for SymPy
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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.