GithubHelp home page GithubHelp logo

Import notebooks from GitHub about gaia-dmp HOT 16 CLOSED

Zarquan avatar Zarquan commented on September 28, 2024
Import notebooks from GitHub

from gaia-dmp.

Comments (16)

NigelHambly avatar NigelHambly commented on September 28, 2024

This is available on the front page of the Zeppelin interface. No action needed.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Looks like this is done.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Not done - I mis-read the title.

from gaia-dmp.

stvoutsin avatar stvoutsin commented on September 28, 2024

Could we get some more context on this issue?
What Nigel was referring to, is that on the main page of Zeppelin you can import a notebook from a URL, so the basic functionality of importing from Github can be done. Is this task to do something more than that?

from gaia-dmp.

NigelHambly avatar NigelHambly commented on September 28, 2024

I guess that's basically true, except that the spirit of this is to be able to easily preserve work outside of this cloud-based platform. As far as I can see I can export a json file to my local disk, I can then stick that in a repository from there. Furthermore I assume I can then import back via the URL option in the import note (correct? I haven't tried). But the former is one hop too many from a lazy person's viewpoint. I'd like to be able to import/export easily from/to the my external repository if possible.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

What I had in mind having an 'import from GitHub' button that enabled you browse and pull notebooks from GitHub without having to explicitly copy/paste URLs. Longer term goal of being able to link your account with your GitHub account and then be able to import and export to/from a GitHub repository.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Example of this is the GitHub integration in Overleaf.
You can link an Overleaf document with a GitHub repository, and then you can sync your document in Overleaf with the copy in GitHub using a button in the Overleaf editor menu.
menu-select

The Overleaf editor pops up a dialog window like this ..
Screenshot at 2020-04-09 16-46-27

Selecting 'commit' gives you the option to add a commit message and then pushes changes from Overleaf into GitHub.
Screenshot at 2020-04-09 16-46-46

To achieve this, Overleaf is keeping track of an association between this Overleaf project and the GitHub repository that it came from, and Overleaf asked me to grant permission to register the Overleaf service as an OAuth application with access to my GitHub account.

Once it is registered as an OAuth application Overleaf shows up in the list of applications that have been granted write access to my GitHub account.
Screenshot at 2020-04-09 17-08-24

This sounds complicated, but a lot of it should be covered by 3rd party libraries that implement support for OAuth applications.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

https://en.wikipedia.org/wiki/OAuth
https://developer.okta.com/blog/2017/06/21/what-the-heck-is-oauth

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Ok, so to be able to move this on, do we split it into stages ?

  1. Import from URL (copy/paste)
  2. Import from GitHub, read only (public repo, git clone)
  3. Register with GitHub as an OAuth application
  4. Import/export from GitHub, read/write (OAuth application)

What do we want to see in the GUI at each stage ?

from gaia-dmp.

NigelHambly avatar NigelHambly commented on September 28, 2024

As mentioned during our last catch-up, at this stage I'd like to establish a road map to getting from where we are now to where we want to be at the end of this year, i.e. deployment of a reasonably user-friendly, stable system that friendly UK-based astronomers can try out. Broad concept of the top level look-and-feel of any GUI should come first, and could be included in such a road map. No harm in rapping over gory details at this stage, but I'd like to see the road map in place asap.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

If we are going to have a separate web interface for Aglais, a landing website where users manage their accounts and bookings, then the GitHub integration would be part of that.
The outline and screen shots are still applicable, just as part of the Aglais pages not the Zeppelin pages.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Not a priority for the December release.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

OK - looks like this might be important for December so I'm re-opening it.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

The hope is that a lot of this functionality is now available in Zeppelin. So first part of this task is to look at what is available "out of the box" in Zeppelin.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Looks like the Zeppelin functionality attaches a single GitHub account for all the notebooks.
We haven't found a way of doing this on a per user basis yet.

from gaia-dmp.

Zarquan avatar Zarquan commented on September 28, 2024

Been there, done that.

from gaia-dmp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.