Allow jupyter notebook to configure multiple contents manager
APACHE-2.0 License
It's intentionally to do things like HybridContentsManager (from pgcontents) which allow setting up multiple sources on jupyter. With extra features including:
pip install multicontents
from multicontents import MultiContentsManager
from IPython.html.services.contents.filemanager import FileContentsManager
from s3contents import S3ContentsManager
c.NotebookApp.contents_manager_class = MultiContentsManager
c.MultiContentsManager.managers = {
"home": {
"manager_class": FileContentsManager,
"kwargs": {
"root_dir": os.environ["HOME"]
},
},
"s3": {
"manager_class": S3ContentsManager,
"kwargs": {
"bucket": "example-bucket",
"prefix": "path/to/notebooks",
},
},
}
git clone [email protected]:lydian/multicontents.git
make server
I'll try my best to do CR pull request!