Skip to content

Instantly share code, notes, and snippets.

@gokhansolak
Created February 16, 2020 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokhansolak/8ea060fb22bd266f0eb03b032d4fc37b to your computer and use it in GitHub Desktop.
Save gokhansolak/8ea060fb22bd266f0eb03b032d4fc37b to your computer and use it in GitHub Desktop.
Ipython file demonstrating the \neq latex display problem
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$a \\neq b$\n",
"\n",
"$a \\geq b$"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"$a \\neq b$\n",
"\n",
"$a \\geq b$"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"$a \n",
"eq b$"
],
"text/plain": [
"<IPython.core.display.Latex object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/latex": [
"$a \\geq b$"
],
"text/plain": [
"<IPython.core.display.Latex object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"from IPython.display import display, Markdown, Latex\n",
"display(Latex(\"$a \\neq b$\"))\n",
"display(Latex(\"$a \\geq b$\"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"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.2"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment