Python in Jupyter: Difference between revisions
From CommunityData
Groceryheist (talk | contribs) |
Groceryheist (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
TODO: | TODO: | ||
* Make sure the notebook is in your desktop (this keeps things simple) | * Make sure the notebook is in your desktop (this keeps things simple) | ||
* Open the notebook in jupyter tab in browser. | * Open the notebook in jupyter tab in browser. | ||
* Notebook itself should encourage them to run some cells. | * Notebook itself should encourage them to run some cells. | ||
=== Download a Jupyter Notebook === | === Download a Jupyter Notebook === | ||
Save the file at the following link | Save the file at the following link to your desktop. Then open it as you were instructed previously. | ||
[https://communitydata.science/~groceryheist/CDSW_Jupyter_test_notebook%20.ipynb CDSW Jupter test notebook] | [https://communitydata.science/~groceryheist/CDSW_Jupyter_test_notebook%20.ipynb CDSW Jupter test notebook] | ||
[[File:Champagne.png|100px]][[File:Party.png|125px]] | |||
=== | === Test the notebook === | ||
Following the instructions in the notebook, run the cell that says: | |||
print("hello world") | |||
You should see "hello world" output right below. If that works you have a working setup for Python and Jupyter. | |||
Feel free to play around in the notebook. Try it out and explore! | |||
[[Category:CDSW]][[Category:Shared Pages]] | [[Category:CDSW]][[Category:Shared Pages]] |
Revision as of 23:44, 17 January 2020
We are going to practice writing and running Python programs (often called "scripts").
TODO:
- Make sure the notebook is in your desktop (this keeps things simple)
- Open the notebook in jupyter tab in browser.
- Notebook itself should encourage them to run some cells.
Download a Jupyter Notebook
Save the file at the following link to your desktop. Then open it as you were instructed previously. CDSW Jupter test notebook
Test the notebook
Following the instructions in the notebook, run the cell that says:
print("hello world")
You should see "hello world" output right below. If that works you have a working setup for Python and Jupyter. Feel free to play around in the notebook. Try it out and explore!