Skip to content

Commit bc4e111

Browse files
committed
Added magic commands note
1 parent 3879601 commit bc4e111

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CH40208/working_with_data/matplotlib/basics.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
"```{note}\n",
6565
"If you're working on a high-resolution screen, you can add this line after importing to get better quality figures in notebooks:\n",
6666
"`%config InlineBackend.figure_format='retina'`\n",
67+
"```\n",
68+
"```{margin}\n",
69+
"Commands starting with `%` are Jupyter \"magic commands\" - special instructions that control the notebook environment rather than Python code. They provide shortcuts for common tasks and configuration. Magic commands only work in Jupyter notebooks, not in regular Python scripts.\n",
6770
"```"
6871
]
6972
},
@@ -536,7 +539,7 @@
536539
"name": "python",
537540
"nbconvert_exporter": "python",
538541
"pygments_lexer": "ipython3",
539-
"version": "3.12.9"
542+
"version": "3.12.3"
540543
}
541544
},
542545
"nbformat": 4,

0 commit comments

Comments
 (0)