Please ensure you have the following:
- a GitHub account
- a CircleCI account
- an IDE (VS Code or PyCharm)
- [Windows Users only] Install git bash. We will be using
git bash
as the terminal for the workshop.
- Fork repo
- Clone repository:
git clone https://github.com/YOUR_USERNAME/clean-code-ml
- Project setup. You can either use docker or conda. Choose whichever you prefer:
- docker (workshop setup instructions)
- conda (workshop setup instructions)
- Mac/Linux users
- Windows users
If you encounter any errors, please refer to FAQs for a list of common errors and how to fix them.
Configure your IDE to use ~/miniconda3/envs/clean-code-ml/bin/python
as the Python interpreter. Here are the instructions on how to do that in VS Code and PyCharm.
Once you've done that, you should be able to:
- Get helpful auto-complete suggestions in your IDE as you type. If somehow that's not showing up, try restarting your code editor.
- Let your IDE auto-format your code in a file. We've installed autopep8 using conda, and now your IDE can help you with the auto-formatting)
- To do this in VS Code, hit
Shift
+⌘
+F
- To do this in VS Code, hit
- Use other tools provided by your IDE.
- For VS Code, hit
F1
and type 'Python Refactor' and you can experiment with any of these commands (e.g. 'Sort Imports')
- For VS Code, hit
The notebook which we use for the starting point of our refactoring exercise was adapted/modified from a Kaggle submission for the titanic competition.