Skip to main content

Jupyter Notebook PyFilesystem Contents Manager

Build Status PyPI

A Jupyter Notebooks ContentsManager that uses PyFilesystem for storing files. Includes a compatible Checkpoints class.

Installation

pip install jupyter-pyfilesystem

Example

jupyter_notebook_config.py:

c.NotebookApp.contents_manager_class = 'jupyter_pyfilesystem.FsContentsManager'

# In-memory temporary filesystem
c.FsContentsManager.fs_url = 'mem://'

See https://docs.pyfilesystem.org/en/latest/openers.html for information on how to define fs_url, and https://docs.pyfilesystem.org/en/latest/builtin.html for a list of built-in filesystems. There are also several externally-contributed filesystems that can be used. Some are listed on https://www.pyfilesystem.org/page/index-of-filesystems/

Note some filesystems may not behave as you expect. For example, the curent implementations of the zip:// and tar:// filesystems do not allow you to update an existing file. You can only create/overwrite an existing file, or open a file read-only.

For example:

c.FsContentsManager.fs_url = 'zip:///tmp/test.zip'

import os
if os.path.exists(fs_url[6:]):
    c.FsContentsManager.create = False
    c.FsContentsManager.writeable = False

If you are using a remote filesystem you may want to enable the keepalive. For example, this will make a remote request to get the details of / every 60 seconds:

c.FsContentsManager.keepalive = 60

Acknowledgements

This repository is based on https://github.com/quantopian/pgcontents/tree/5fad3f6840d82e6acde97f8e3abe835765fa824b

Metadata

Release files for jupyter-pyfilesystem 0.0.5

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

Source distribution (sdist)

Source distribution for jupyter-pyfilesystem 0.0.5
File Size Uploaded
jupyter-pyfilesystem-0.0.5.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter-pyfilesystem 0.0.5
File Interpreter ABI Platform
jupyter_pyfilesystem-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / jupyter-pyfilesystem-0.0.5.tar.gz

Download URL jupyter-pyfilesystem-0.0.5.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0ad38ea74e4ca6a4ed46044f0431c1557e1232863f1dd73397cfe100202f4bae
BLAKE2b-256 checksum
How to use checksums
36250a431a4eea9b5c36718b40be9cedd1518bff3efb09bd9c136fb4b78f50dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

Release files / jupyter_pyfilesystem-0.0.5-py3-none-any.whl

Download URL jupyter_pyfilesystem-0.0.5-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
703c5d019474f3bd05ec038ce5e6f197160f3874ff0af93d7228c4fe2753266f
BLAKE2b-256 checksum
How to use checksums
d39a2c3b765e26d624288abee9a6f22431efbd23d27ebae73545f547b01f8731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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