Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 3 KB

README.md

File metadata and controls

52 lines (42 loc) · 3 KB

Getting Started

Before you start the assignment you should set up your Python enviornment and get comfortable with using Jupyter notebooks. Though there are a lot of ways to do this, we reccommend you to do it using the Anaconda distribution.

Setting up Your Python Environment

Download and install Anaconda's Python 3.7 version on your computers from here. It is available for all 3 platforms - Windows, macOS and Linux. It will install Jupyter notebook on your system and download all the Python libraries that you'll need for this assignment.

Jupyter Notebooks

To run the notebook, run the following command - jupyter notebook at the Terminal(Mac/Linux). For Windows type the same command in the Anaconda Prompt( Anaconda command prompt is just like command prompt,but it makes sure that you are able to use anaconda and conda commands from the prompt, without having to change directories or your path). Type Anaconda Prompt in the search bar or just directly search for Jupyter Notebooks on your system. You should see the notebook open in your browser. Creating a new Jupyter Notebook is easy, just use the "New" dropdown menu and click on "Python 3". Try to experiment and play around with things by yourselves.

Something key to be aware of: Jupyter Notebooks have two different keyboard input modes:

Command mode - binds the keyboard to notebook level actions. Indicated by a grey cell border with a blue left margin. Edit mode - when you’re typing in a cell. Indicated by a green cell border.

Command Mode

  • shift + enter run cell, select below
  • ctrl + enter run cell
  • option + enter run cell, insert below
  • A insert cell above
  • B insert cell below
  • C copy cell
  • V paste cell
  • D + D (press the key twice) delete selected cell
  • option + enter merge selected cells, or current cell with cell below if only one is selected.
  • I + I interrupt kernel
  • Y change cell to code mode
  • M change cell to markdown mode (for good documentation)

Edit Mode

  • cmd + click for multi-curso editing
  • tab code completion or indent
  • shift + tab show documentation
  • ctrl + shift + - split cell

***Command Palette

Press cmd + shift + P for quick access to all commands in Jupyter notebooks and press H (in command mode) to viewa all keyboard shortcuts.

***Switching b/w the Command and Edit Mode

The edit mode is entered if you click into the code area of that cell. This mode is indicated by a green border on the left side of the cell. If you’d like to leave edit mode and return to command mode again you just need to hit ESC . Enter will take you from command mode back into edit mode for the given cell.

***How to Practice

Open a blank jupyter notebook and using the workshop's notebooks as a reference, write (do not just copy and paste) and run the code in the blank. This will help you to get comfortable with all the data structures and ideas that you'll need for the assignment. Feel free to exploit the internet for your doubts.

***Contact

In case you have doubts, please write an email on [[email protected]].

©