Skip to content
/ foo Public template

Poetry virtual environment to run jupyter notebooks

License

Notifications You must be signed in to change notification settings

aspfohl/foo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foo

Simple python template with:

  • Poetry dependency manager
  • Development libraries with custom configuration for:
    • testing (pytest)
    • formatting (black, isort)
    • linting (pylint, mypy, flake8, pycodestyle)
  • Jupyter notebook support
  • Basic data science libraries (numpy, pandas, matplotlib)

First time setup:

  • Create new repo with this template
  • Find and replace "foo" with your package name
  • Rename main "foo" folder

Setup

Requires:

To create the virtual environment:

$ make venv

Opening up jupyter notebooks in the python virtual environment:

$ make notebook

Adding new packages is super easy. Activate the environment and use the add command. For example:

(venv) $ poetry add pandas