question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow for multiple, different dependencies per repository

See original GitHub issue

Hi,

Maybe this is already resolved but I can see it.

Simple use case: I have a repo with 2 notebooks, the first one with a very simple dependency and a second with a lot of heavy dependencies. I would like to define a specific environment for each notebook without having to create independent repositories.

For example, the following repo:

.
├── binder
│   ├── requirements_abc.txt
│   └── Dockerfile_def
├── notebooks
│   ├── abc.ipynb
│   └── def.ipynb
└── readme.txt

The actual url is:

https://mybinder.org/v2/<provider-name>/<org-name>/<repo-name>/<branch|commit|tag>?filepath=<path/to/notebook.ipynb>

And I (from a user perspective) would like something like:

https://mybinder.org/v2/<provider-name>/<org-name>/<repo-name>/<branch|commit|tag>?filepath=<path/to/notebook.ipynb>&dependencies=<binder/dependencies_file>

Maybe this could be achieved using tags and/or commits but this will require to overwrite the dependencies file on each new notebook commit.

Another workaround could be to use separate gists (#306) for each notebook and dependency file.

I don’t know if this make sense.

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
manicscommented, Apr 22, 2020

Hi @rbavery, would you mind posting this on the Discourse forum instead? https://discourse.jupyter.org/

There’s a wider potential audience who may be interested in the pros and cons. All Jupyter projects are community projects, and if enough of the community are interested the decision here may change, or we might find an alternative way to achieve what you want.

2reactions
kikocorreosocommented, May 18, 2018

In a pinch, for users that write a script requiring some very specific dependency, you could also consider having them explicitly install that dependency at the top of the post. This could be informative for readers anyway, as often it’s useful to highlight things that are not part of the “standard scipy stack”. Think that’d work?

Yesterday, before reading your answer, I was thinking this could be a practical hack for our use case. Thanks for confirming it 😄

Thanks for the constructive feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow for multiple, different dependencies per repository
I think your best bet is to try and install a list of dependencies you'll conceivably need for most posts. Binder will turn...
Read more >
How does git work with multiple projects/dependencies?
Elegant way: Create a repository for each project and then put all repositories into a master repository. Save this answer.
Read more >
Guide to using Multiple Repositories - Apache Maven
The first way is to specify in a POM which repositories you want to use. That is supported both inside and outside of...
Read more >
Multiple repositories with dependencies : r/git - Reddit
Submodules are the go-to way in Git of having one repo include code from another. A common setup is to have a "parent"...
Read more >
Using multiple Git repositories instead of a single one ...
Thus, if you want to import a CVS repository with several modules in git, you better create a repository per module, especially if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found