MCS 275 Spring 2023
Emily Dumas
Reminders and announcements:
shuttle.py |
Edit and submit. Add subclasses as requested. |
---|---|
fixtures.py |
Read. |
simulation.py |
Read. Use/modify for testing. |
tui.py |
Module used by simulation.py . Don't need to read. |
Now, a demo of a solution to the project in the REPL and using simulation.py
.
print(...)
).print(...)
).MCS 275 uses notebooks for homework, worksheets, and project descriptions, so you've seen these before. But you usually see a version converted to HTML.
MCS 275 uses notebooks for homework, worksheets, and project descriptions, so you've seen these before. But you usually see a version converted to HTML.
MCS 275 uses notebooks for homework, worksheets, and project descriptions, so you've seen these before. But you usually see a version converted to HTML.
Most users can install Jupyter using pip:
python3 -m pip install notebook
Then run the interface with:
python3 -m notebook
Of course, you need to replace python3
with your interpreter name.
A few of the many keyboard shortcuts:
The notebook interface is stateful: Behavior depends on the cells that have been evaluated so far.
If you open a previously saved notebook file, you may see old output. But you need to run all of the cells again if you want to use those values in the current session.
Cell execution order matters: Best to make a notebook that is meant to run top to bottom.
Text cells (Colab) or markdown cells (Jupyter) contain formatted text. When editing, formatting is specified with a language called Markdown.
# Heading level 1
## Heading level 2
### Heading level 3
* Bullet list item
* Another bullet list item
1. Numbered list item
1. Another numbered list item
Links: [text to display](https://example.com)