Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch from HTTP referrer, autodetect launch URL #891

Closed
wants to merge 1 commit into from

Conversation

manics
Copy link
Member

@manics manics commented Jul 9, 2019

Opening this for initial comments, not sure how much time I'll have to follow up in the immediate future.

Background

This adds a new /autodetect page that takes the HTTP referrer and converts it to a mybinder URL. You can also paste a GitHub repo URL, GitHub gist URL, GitLab repo URL, or Zenodo DOI into the input box. Currently this is a separate page, mostly copied from the main index.html.

Example: In a GitHub repo create a readme with a link to https://binder.example.org/autodetect, if it works the referrer will be parsed and converted into a link to launch the repo you came from.An earlier example can be seen at https://github.com/manics/mybinder-referrer/tree/demo

Screen Shot 2019-07-09 at 17 35 39-fullpage

Screen Shot 2019-07-09 at 17 35 58-fullpage

TODO:

  • Tests
  • Don't hard-code https://mybinder.org/

@meeseeksmachine
Copy link

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/binderhub-button-pull-from-referrer/1572/9

@meeseeksmachine
Copy link

This pull request has been mentioned on Jupyter Community Forum. There might be relevant details there:

https://discourse.jupyter.org/t/tip-embed-custom-github-content-in-a-binder-link-with-nbgitpuller/922/41

@jd41
Copy link

jd41 commented Jan 3, 2021

I am making a note here hoping that it's remembered to update the README.md in JupyterLab once this PR is merged, see here for more information.

What's the procedure that this is not forgotten, where does such a comment properly belong?

@yuvipanda
Copy link
Collaborator

I've memorialized this feature in #1860 (since I didn't find anything else). Given that, I'm going to close this one.

@yuvipanda yuvipanda closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants