Skip to main content

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.

Metadata

Release files for caspercm 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caspercm 0.0.3
File Size Uploaded Provenance Actions
caspercm-0.0.3.tar.gz 8.8 kB Without provenance Details for caspercm-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caspercm 0.0.3
File Interpreter ABI Platform Actions
caspercm-0.0.3-py3-none-any.whl Python 3 none any Details for caspercm-0.0.3-py3-none-any.whl

Total release size: 17.9 kB

Release files / caspercm-0.0.3.tar.gz

Download URL caspercm-0.0.3.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
45af4cc0415abfa7355015812b51fb84c4cfe86b64c7caa0008045848c9dda6f
BLAKE2b-256 checksum
How to use checksums
ac15258855515b54dd78733d11829f6bf953365bf65850669d8ea32415ca414f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caspercm-0.0.3-py3-none-any.whl

Download URL caspercm-0.0.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf01fd7abd47bfd4160a270cbfe1417501e02a25070dc420fa5e2a5373178c0
BLAKE2b-256 checksum
How to use checksums
a54f99f78448aafd3fca5609de26be39bcd69b999366b9ffd4bcd5dd8e18ad07
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for caspercm 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page