Pokémon
Lab setup
First, make sure you have completed the initial setup.
If you are part of a course
-
Open Terminal. Run the update command to make sure you have the latest code.
$ mwc update
-
Move to this lab's directory.
$ cd ~/Desktop/making_with_code/mwc1/unit2/lab_pokemon
-
Enter this lab's shell environment.
$ poetry shell
If you are working on your own
-
Move to your MWC directory.
$ cd ~/Desktop/making_with_code
-
Get a copy of this lab's materials.
git clone https://git.makingwithcode.org/mwc/lab_pokemon.git
So far in this course, you have written all your Python programs in *.py
files. This lab introduces a new
environment for writing Python, Jupyter notebooks. A notebook runs in a browser, and includes snippets of Python
code, along with text and images. This is an especially convenient format for data science, where you often
want to build an argument or tell a story using data, while showing your work. When you share a Jupyter notebook,
the reader can re-run all the code to see the results for herself.
💻
Open Jupyter notebook inside of your repository: jupyter lab
. You should see a web
browser window open with a listing of all the files in your lab directory:
💻
Click on lab_pokemon.ipynb
. The Pokémon lab will open in a new tab: