Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.12 KB

CONTRIBUTING.md

File metadata and controls

67 lines (47 loc) · 1.12 KB

Contributing

Requirements:

Create Python env:

hatch env

# Activate env
hatch shell

Iteration

Configure Jupyter:

  • Edit ~/.jupyter/jupyter_notebook_config.py:
c = get_config()

# Tell Jupyter to use S3ContentsManager for storage
from s3contents import S3ContentsManager
c.ServerApp.contents_manager_class = S3ContentsManager
c.S3ContentsManager.endpoint_url = "http://localhost:9000"
c.S3ContentsManager.access_key_id = "access-key"
c.S3ContentsManager.secret_access_key = "secret-key"
c.S3ContentsManager.bucket = "notebooks"

c.ServerApp.open_browser = False
c.ServerApp.tornado_settings = {"debug": True}

# only log s3contents but not boto
import logging
log = logging.getLogger()
log.setLevel(logging.ERROR)
c.log_level = "DEBUG"
c.Application.log_level = "DEBUG"

Start Minio (using docker) in one terminal:

task minio

Start Jupyter Notebook in another terminal:

jupyter lab --config ~/.jupyter/jupyter_notebook_config.py

Tests

task test

Check linting and format

task check
task fmt