Skip to content

Instantly share code, notes, and snippets.

@mpacer
Last active November 26, 2015 06:35
Show Gist options
  • Save mpacer/2b627ffe8f10cde53926 to your computer and use it in GitHub Desktop.
Save mpacer/2b627ffe8f10cde53926 to your computer and use it in GitHub Desktop.
Demonstrates a bug in jupyter notebook rendering of Mathjax/LaTeX where the LaTeX syntax depends on delimiter
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"pdf of k arrivals in interval (0,T) is \\\\[\\frac{(Λ_{0,T})^k \\exp(Λ_{0,T})}{k!}\\\\]\n",
"\n",
"pdf of k arrivals in interval (0,T) is $$\\frac{(Λ_{0,T})^k \\exp(Λ_{0,T})}{k!}$$\n",
"\n",
"pdf of k arrivals in interval (0,T) is \\\\(\\frac{(Λ_{0,T})^k \\exp(Λ_{0,T})}{k!}\\\\)\n",
"\n",
"pdf of k arrivals in interval (0,T) is $\\frac{(Λ_{0,T})^k \\exp(Λ_{0,T})}{k!}$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"pdf of k arrivals in interval (0,T) is \\\\[\\frac{(Λ\\_{0,T})^k \\exp(Λ\\_{0,T})}{k!}\\\\]\n",
"\n",
"pdf of k arrivals in interval (0,T) is $$\\frac{(Λ\\_{0,T})^k \\exp(Λ\\_{0,T})}{k!}$$\n",
"\n",
"pdf of k arrivals in interval (0,T) is \\\\(\\frac{(Λ\\_{0,T})^k \\exp(Λ\\_{0,T})}{k!}\\\\)\n",
"\n",
"pdf of k arrivals in interval (0,T) is $\\frac{(Λ\\_{0,T})^k \\exp(Λ\\_{0,T})}{k!}$"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.0"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
@mpacer
Copy link
Author

mpacer commented Nov 26, 2015

Ok so this is a major bug also in github's rendering of Mathjax, though that is a different one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment