Last active
June 2, 2021 17:22
-
-
Save krassowski/a0e73b2fcdfb374ba0941839d7e28e3f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{"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.7.8"}},"nbformat_minor":5,"nbformat":4,"cells":[{"cell_type":"code","source":"from IPython.display import display, Markdown","metadata":{"trusted":true},"execution_count":1,"outputs":[]},{"cell_type":"code","source":"string = '|Nom et Netlist|Inconnues|Stamp|RHS| \\n|:-:|:-:|:-:|:-:| \\n|Générateur de tension<br> ```Vx N+ N- Vg```|$\\\\left[\\\\begin{matrix}V(N+)\\\\\\\\V(N-)\\\\\\\\I(Vx)\\\\end{matrix}\\\\right]$|$\\\\left[\\\\begin{matrix}0 & 0 & 1\\\\\\\\0 & 0 & -1\\\\\\\\1 & -1 & 0\\\\end{matrix}\\\\right]$|$\\\\left[\\\\begin{matrix}0\\\\\\\\0\\\\\\\\V_{g}\\\\end{matrix}\\\\right]$| \\n'","metadata":{"trusted":true},"execution_count":2,"outputs":[]},{"cell_type":"code","source":"something_that_can_change = ''\ndisplay(Markdown(string + something_that_can_change))","metadata":{"trusted":true},"execution_count":3,"outputs":[{"output_type":"display_data","data":{"text/plain":"<IPython.core.display.Markdown object>","text/markdown":"|Nom et Netlist|Inconnues|Stamp|RHS| \n|:-:|:-:|:-:|:-:| \n|Générateur de tension<br> ```Vx N+ N- Vg```|$\\left[\\begin{matrix}V(N+)\\\\V(N-)\\\\I(Vx)\\end{matrix}\\right]$|$\\left[\\begin{matrix}0 & 0 & 1\\\\0 & 0 & -1\\\\1 & -1 & 0\\end{matrix}\\right]$|$\\left[\\begin{matrix}0\\\\0\\\\V_{g}\\end{matrix}\\right]$| \n"},"metadata":{}}]},{"cell_type":"code","source":"something_that_can_change=' \\n\\n``` \\ndef a():\\nprint(\"hello\")\\n```'\ndisplay(Markdown(string + something_that_can_change))","metadata":{"trusted":true},"execution_count":4,"outputs":[{"output_type":"display_data","data":{"text/plain":"<IPython.core.display.Markdown object>","text/markdown":"|Nom et Netlist|Inconnues|Stamp|RHS| \n|:-:|:-:|:-:|:-:| \n|Générateur de tension<br> ```Vx N+ N- Vg```|$\\left[\\begin{matrix}V(N+)\\\\V(N-)\\\\I(Vx)\\end{matrix}\\right]$|$\\left[\\begin{matrix}0 & 0 & 1\\\\0 & 0 & -1\\\\1 & -1 & 0\\end{matrix}\\right]$|$\\left[\\begin{matrix}0\\\\0\\\\V_{g}\\end{matrix}\\right]$| \n \n\n``` \ndef a():\nprint(\"hello\")\n```"},"metadata":{}}]},{"cell_type":"code","source":"something_that_can_change=' \\n\\n```python \\ndef a():\\nprint(\"hello\")\\n```'\ndisplay(Markdown(string + something_that_can_change))","metadata":{"trusted":true},"execution_count":5,"outputs":[{"output_type":"display_data","data":{"text/plain":"<IPython.core.display.Markdown object>","text/markdown":"|Nom et Netlist|Inconnues|Stamp|RHS| \n|:-:|:-:|:-:|:-:| \n|Générateur de tension<br> ```Vx N+ N- Vg```|$\\left[\\begin{matrix}V(N+)\\\\V(N-)\\\\I(Vx)\\end{matrix}\\right]$|$\\left[\\begin{matrix}0 & 0 & 1\\\\0 & 0 & -1\\\\1 & -1 & 0\\end{matrix}\\right]$|$\\left[\\begin{matrix}0\\\\0\\\\V_{g}\\end{matrix}\\right]$| \n \n\n```python \ndef a():\nprint(\"hello\")\n```"},"metadata":{}}]}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment