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.

Adding support for OSF

See original GitHub issue

We want to be able to support the immutable frozen relases on OSF as an input to repo2docker.

So we should introduce the concept of content providers. Their job is to check out the given URL to the current local directory. They won’t do any caching or whatever, and would use traitlets to be pluggable.

We decided against having autodetection, since there is no way to do that reliably for everything, and doing that only for some providers seems complex.

So new commandline would be like:

jupyter-repo2docker --provider=osf https://<some-osf-url>

And the provider class should be like:

class OSFProvider(Provider):
     name = 'osf'
     
     description = 'some description of this provider'

     @gen.coroutine
     def provide(self, identifier):
     """
     This method should fetch the contents of the given identifier to the current working directory
     """
     pass

This means we only support a single identifier (such as file path, git url including ref, or osf url) to each provider. This makes implementation simpler, but we can modify this in the future if we need.

/cc @betatim @mfraezz

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yuvipandacommented, Oct 21, 2017

@betatim cool!

I think let’s just go with providing a single identifier for now, and we can extend it when we run into a use case that explicitly requires it.

0reactions
betatimcommented, Oct 15, 2018

Zenodo uses SoftwareSourceCode as the type of JSON-LD to represent a code submission. That schema doesn’t contain a field for “archive link” so I think we won’t have any luck with that.

My take away from this is that we should start with archive specific content providers and share as much as possible between them. A first step towards that is #242.

Once that is merged we could add a (remote) ZIP/tar.gz file provider which can then be reused by a Zenodo provider and/or an OSF provider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OSF Support
Common questions and support documentation. ... Welcome to OSF support, how can we help? Search. No results found ... Add-ons & API Integrations....
Read more >
Adding support for OSF · Issue #102 · jupyterhub/repo2docker
We want to be able to support the immutable frozen relases on OSF as an input to repo2docker. So we should introduce the...
Read more >
Open Science Framework (OSF) - PMC - NCBI - NIH
The OSF is intended to be collaborative, and users can easily add contributors to projects. The OSF supports controlled access, so project members...
Read more >
The Open Science Framework
OSF is a free and open source project management tool that supports researchers ... link projects together, add preprints, or create preregistrations.
Read more >
Frequently Asked Questions - OSF MyChart - Login Page
OSF MyChart is a free service offered to our patients. ... please visit "Request Family Access" under the "Communication" menu to add or...
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