Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
d0e6f90fc91537e71d96befd9f7f0f02
mooc-rr
Commits
d9844264
Commit
d9844264
authored
Nov 19, 2024
by
d0e6f90fc91537e71d96befd9f7f0f02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latex tabular deception
parent
59345c5d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
18 deletions
+99
-18
toy_notebook_fr.ipynb
module2/exo1/toy_notebook_fr.ipynb
+99
-18
No files found.
module2/exo1/toy_notebook_fr.ipynb
View file @
d9844264
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {
"metadata": {
"hideCode":
fals
e,
"hideCode":
tru
e,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"source": [
"source": [
"# Bienvenue à toi, aventurier !"
"# Bienvenue à toi, aventurier !"
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1,
"execution_count": 1
2
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e,
"hidePrompt":
tru
e,
"scrolled": true
"scrolled": true
},
},
"outputs": [
"outputs": [
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
"cell": {
"cell": {
"!": "OSMagics",
"!": "OSMagics",
"HTML": "Other",
"HTML": "Other",
"R": "RMagics",
"SVG": "Other",
"SVG": "Other",
"bash": "Other",
"bash": "Other",
"capture": "ExecutionMagics",
"capture": "ExecutionMagics",
...
@@ -52,6 +53,11 @@
...
@@ -52,6 +53,11 @@
"writefile": "OSMagics"
"writefile": "OSMagics"
},
},
"line": {
"line": {
"R": "RMagics",
"Rdevice": "RMagics",
"Rget": "RMagics",
"Rpull": "RMagics",
"Rpush": "RMagics",
"alias": "OSMagics",
"alias": "OSMagics",
"alias_magic": "BasicMagics",
"alias_magic": "BasicMagics",
"autoawait": "AsyncMagics",
"autoawait": "AsyncMagics",
...
@@ -153,15 +159,15 @@
...
@@ -153,15 +159,15 @@
},
},
"text/plain": [
"text/plain": [
"Available line magics:\n",
"Available line magics:\n",
"%alias %alias_magic %autoawait %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %conda %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %killbgscripts %ldir %less %lf %lk %ll %load %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %ls %lsmagic %lx %macro %magic %man %matplotlib %mkdir %more %mv %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %pip %popd %pprint %precision %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %rm %rmdir %run %save %sc %set_env %store %sx %system %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode\n",
"%
R %Rdevice %Rget %Rpull %Rpush %
alias %alias_magic %autoawait %autocall %automagic %autosave %bookmark %cat %cd %clear %colors %conda %config %connect_info %cp %debug %dhist %dirs %doctest_mode %ed %edit %env %gui %hist %history %killbgscripts %ldir %less %lf %lk %ll %load %load_ext %loadpy %logoff %logon %logstart %logstate %logstop %ls %lsmagic %lx %macro %magic %man %matplotlib %mkdir %more %mv %notebook %page %pastebin %pdb %pdef %pdoc %pfile %pinfo %pinfo2 %pip %popd %pprint %precision %prun %psearch %psource %pushd %pwd %pycat %pylab %qtconsole %quickref %recall %rehashx %reload_ext %rep %rerun %reset %reset_selective %rm %rmdir %run %save %sc %set_env %store %sx %system %tb %time %timeit %unalias %unload_ext %who %who_ls %whos %xdel %xmode\n",
"\n",
"\n",
"Available cell magics:\n",
"Available cell magics:\n",
"%%! %%HTML %%SVG %%bash %%capture %%debug %%file %%html %%javascript %%js %%latex %%markdown %%perl %%prun %%pypy %%python %%python2 %%python3 %%ruby %%script %%sh %%svg %%sx %%system %%time %%timeit %%writefile\n",
"%%! %%HTML %%
R %%
SVG %%bash %%capture %%debug %%file %%html %%javascript %%js %%latex %%markdown %%perl %%prun %%pypy %%python %%python2 %%python3 %%ruby %%script %%sh %%svg %%sx %%system %%time %%timeit %%writefile\n",
"\n",
"\n",
"Automagic is ON, % prefix IS NOT needed for line magics."
"Automagic is ON, % prefix IS NOT needed for line magics."
]
]
},
},
"execution_count": 1,
"execution_count": 1
2
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -175,7 +181,7 @@
...
@@ -175,7 +181,7 @@
"execution_count": 2,
"execution_count": 2,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -186,7 +192,7 @@
...
@@ -186,7 +192,7 @@
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"source": [
"source": [
"Mais si, c'est possible avec la carte kiwi :)"
"Mais si, c'est possible avec la carte kiwi :)"
...
@@ -197,7 +203,7 @@
...
@@ -197,7 +203,7 @@
"execution_count": 3,
"execution_count": 3,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -209,7 +215,7 @@
...
@@ -209,7 +215,7 @@
"execution_count": 5,
"execution_count": 5,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [
"outputs": [
{
{
...
@@ -230,7 +236,7 @@
...
@@ -230,7 +236,7 @@
"execution_count": 6,
"execution_count": 6,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [
"outputs": [
{
{
...
@@ -254,7 +260,7 @@
...
@@ -254,7 +260,7 @@
"execution_count": 8,
"execution_count": 8,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -266,7 +272,7 @@
...
@@ -266,7 +272,7 @@
"execution_count": 9,
"execution_count": 9,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [
"outputs": [
{
{
...
@@ -286,7 +292,7 @@
...
@@ -286,7 +292,7 @@
"execution_count": 10,
"execution_count": 10,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt":
fals
e
"hidePrompt":
tru
e
},
},
"outputs": [
"outputs": [
{
{
...
@@ -306,17 +312,92 @@
...
@@ -306,17 +312,92 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
13
,
"metadata": {
"metadata": {
"hideCode": false,
"hideCode": false,
"hidePrompt": false
"hidePrompt": true
},
"outputs": [],
"source": [
"%page"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"hideCode": true,
"hidePrompt": true
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid syntax (<ipython-input-17-b7c2658eaa39>, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-17-b7c2658eaa39>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m $$\\begin{table}[]\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
]
}
],
"source": [
"$$\\begin{table}[]\n",
"\\begin{tabular}{lll}\n",
"Jour & XP & PV \\\\\n",
"1 & 0 & 30 \\\\\n",
"2 & 20 & 23 \\\\\n",
"3 & 100 & 1 \n",
"\\end{tabular}\n",
"\\end{table}$$"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
"\\begin{align}\n",
"\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
"\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n",
"\\end{align}\n"
],
"text/plain": [
"<IPython.core.display.Latex object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%%latex\n",
"\\begin{align}\n",
"\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n",
"\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n",
"\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n",
"\\end{align}"
]
},
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"outputs": [],
"source": []
"source": []
}
}
],
],
"metadata": {
"metadata": {
"hide_code_all_hidden":
fals
e,
"hide_code_all_hidden":
tru
e,
"kernelspec": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3",
"language": "python",
"language": "python",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment