Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

[WIP] Multiple ContentsManagers #204

Open
jasongrout opened this issue Jul 25, 2016 · 4 comments
Open

[WIP] Multiple ContentsManagers #204

jasongrout opened this issue Jul 25, 2016 · 4 comments

Comments

@jasongrout
Copy link
Member

@danielballan and I were talking about some usecases he has for Jupyter, and one that came up is that he'd like to provide two different types of contents managers (perhaps one as a server extension). We came up with the following back-of-the-envelope list of bullet points which we can flesh out:

  • jupyter-js-services allow to configure the contents manager api endpoint
  • The services object allowing to configure more than one contents manager

In JupyterLab, having the file manager be associated with a separate contents manager.

Also, a contents manager supporting getting a slice of a file would be great too.

I'll flesh out more later - just recording the short list of abbreviated bullet points now...

@blink1073
Copy link
Contributor

I don't inderstand the need for multiple instances here, why not override the server end instance with an extension to provide the extra capabilities?

@danielballan
Copy link

@blink1073 Good question. Overriding the existing instance is a reasonable alternative, but I think two separate managers is a cleaner solution to this particular use case. We have a database of "experiments" of different kinds that can be represented well by a ContentsManager. Mixing them in one manager seems confusing to me. On the client side, I want a separate "Experiment Browser" to make it clear that these experiments are files at some special mount point. On the server side, experiments have different rules that files (always read-only, for example).

@jasongrout
Copy link
Member Author

@blink1073 - we were playing with the idea of having two contents manager (each backed by different storage) and different file browsers for each system.

@blink1073
Copy link
Contributor

That's fair, thanks for clarifying.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants