Skip to content

Commit 7938d04

Browse files
committed
deploy: 80a71b8
1 parent 6ad2818 commit 7938d04

File tree

63 files changed

+944
-930
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+944
-930
lines changed
13.4 KB
Loading
11.9 KB
Loading
12.1 KB
Loading
2.73 MB
Loading
13.6 KB
Loading
9.77 KB
Loading
17.1 KB
Loading
10.1 KB
Loading

_sources/foundations/jupyter.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ jupyter lab —browser=chrome
8181

8282
**Congratulations!** You have just set up your first Python environment and run your first Python code in a Jupyter notebook.
8383

84+
<div class="admonition alert alert-info">
85+
<p class="admonition-title" style="font-weight:bold">Info</p>
86+
There are a few code-syntax differences between running Python in a Jupyter notebook and a script:
87+
<ul>
88+
<li>In a Python script, to print a variable to the terminal, you need to call <code>print([THING YOU WANT TO PRINT])</code>, whereas in Jupyter, you can simply have the last line of a code cell be <code>[THING YOU WANT TO PRINT]</code>.</li>
89+
<li>Similarly with plots, in Python, you have to call <code>plt.show()</code> to display your plot, but plots are shown automatically in Jupyter.</li>
90+
</ul>
91+
</div>
92+
8493
## Saving your notebook and exiting
8594

8695
When you are done with your work, it is time to save and exit.

appendix/how-to-contribute.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<link rel="prev" title="Dask Arrays with Xarray" href="../core/xarray/dask-arrays-xarray.html" />
8282
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8383
<meta name="docsearch:language" content="en"/>
84-
<meta name="docbuild:last-update" content="6 August 2024"/>
84+
<meta name="docbuild:last-update" content="15 August 2024"/>
8585
</head>
8686

8787

@@ -837,7 +837,7 @@ <h3>Keeping your dev environment up to date<a class="headerlink" href="#keeping-
837837

838838
<div class="footer-item">
839839
<p class="last-updated">
840-
Last updated on 6 August 2024.
840+
Last updated on 15 August 2024.
841841
<br/>
842842
</p>
843843
</div>
@@ -966,7 +966,7 @@ <h1>Contribute</h1>
966966

967967
By the <a href="https://projectpythia.org/">Project Pythia</a> Community.
968968

969-
Last updated on 6 August 2024.
969+
Last updated on 15 August 2024.
970970
</p>
971971
</div>
972972
</div>

0 commit comments

Comments
 (0)