Pokémon

Lab setup

First, make sure you have completed the initial setup.

If you are part of a course

  1. Open Terminal. Run the update command to make sure you have the latest code.
    $ mwc update
  2. Move to this lab's directory and enter the lab's shell environment.
    $ cd ~/Desktop/making_with_code/mwc1/unit2/lab_pokemon
    $ poetry shell

If you are working on your own

  1. Move to your MWC directory.
    $ cd ~/Desktop/making_with_code
    
  2. Get a copy of this lab's materials.
    $ git clone https://git.makingwithcode.org/mwc/lab_pokemon.git
  3. Move into the lab directory, install the dependencies, and enter the lab's shell environment.
    $ cd lab_pokemon
    $ poetry install
    $ poetry shell

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:

Jupyter notebook file listing

💻 Click on lab_pokemon.ipynb. The Pokémon lab will open in a new tab:

Jupyter notebook file listing