Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.23 KB

File metadata and controls

51 lines (37 loc) · 1.23 KB

Development

Create dev environment

# Create conda env
make env
conda activate s3contents
make develop

Testing

Start minio in one terminal:

make minio

Note: If you are using podman instead of docker, you may have to fiddle with SELinux permissions on the volume mount for minio, or use :z.

Edit local ~/.jupyter/jupyter_notebook_config.py:

c = get_config()

# Tell Jupyter to use S3ContentsManager for storage
from s3contents import S3ContentsManager
c.NotebookApp.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"

# from s3contents import GCSContentsManager
# c.NotebookApp.contents_manager_class = GCSContentsManager
# c.GCSContentsManager.project = "continuum-compute"
# c.GCSContentsManager.token = "~/.config/gcloud/application_default_credentials.json"
# c.GCSContentsManager.bucket = "gcsfs-test"
# c.GCSContentsManager.prefix = "this/is/the/prefix"

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

Start Jupyter Notebook in another terminal:

jupyter notebook