Skip to main content

JupyterLab Content Manager Using Oracle Cloud Object Store

Project description

Purpose

Allow JupyterLab user to save content to Oracle Object Storage.

3 Steps to Config

Step 1: Install this package

# You may want to install it in the virtualenv you created for your JupyterLab
pip install caspercm

Step 2: Config your jupyterlab

# Edit your jupyterlab config file
# e.g. vi ~/.jupyter/jupyter_notebook_config.py
# add following

from caspercm import JupyterCasperCM
c.NotebookApp.contents_manager_class = JupyterCasperCM
c.NotebookApp.JupyterCasperCM.fstab = '/root/.oci/fstab.json'

The example above shows your fstab.json is located at /root/.oci/fstab.json, it can be placed other places as well.

Step 3: Config your fstab.json

Here is an example of fstab.json

{
    "/": {
        "namespace": "bmcdw",
        "bucket": "beta_jupyterlab_notebook",
        "prefix": "stonezhong/",
        "api_config": "/root/.oci/config"
    },
    "/public": {
        "namespace": "bmcdw",
        "bucket": "beta_jupyterlab_notebook",
        "prefix": "public/",
        "api_config": "/root/.oci/config"
    }
}
  • Your notebooks root directory (aka /) is at stonezhong/ of bucket beta_jupyterlab_notebook in oci namespace bmcdw
  • Your notebooks directory /public is at public/ of bucket beta_jupyterlab_notebook in oci namespace bmcdw
  • For each mount point, told system your oci config is at /root/.oci/config

Here is how /root/.oci/config looks like: (the content is just an example, secret part has been altered)

[DEFAULT]
key_file=/root/.oci/oci_api_key.pem
region=us-phoenix-1
tenancy=ocid1.tenancy.oc1..xyz
user=ocid1.user.oc1..xyz
fingerprint=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

Note, it points to key file /root/.oci/oci_api_key.pem which shuold exist.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caspercm-0.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

caspercm-0.0.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file caspercm-0.0.3.tar.gz.

File metadata

  • Download URL: caspercm-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for caspercm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 45af4cc0415abfa7355015812b51fb84c4cfe86b64c7caa0008045848c9dda6f
MD5 a733cef488bd2806281d6244932a5ce6
BLAKE2b-256 ac15258855515b54dd78733d11829f6bf953365bf65850669d8ea32415ca414f

See more details on using hashes here.

File details

Details for the file caspercm-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: caspercm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for caspercm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bf01fd7abd47bfd4160a270cbfe1417501e02a25070dc420fa5e2a5373178c0
MD5 d7cb601cc9fbc5676789c29acbe7f93d
BLAKE2b-256 a54f99f78448aafd3fca5609de26be39bcd69b999366b9ffd4bcd5dd8e18ad07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page