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

Demo Rmd, R and py notebooks in binder #23

Closed
mwouts opened this issue Jul 20, 2018 · 3 comments
Closed

Demo Rmd, R and py notebooks in binder #23

mwouts opened this issue Jul 20, 2018 · 3 comments

Comments

@mwouts
Copy link
Owner

mwouts commented Jul 20, 2018

Add Rmd, R and py versions of a notebook with code, results and images, plus its ipynb rendering, so that people can open and test them in binder #19 .

Document a few manipulations:

  • edit text notebook (do we have a text editor in binder?) and reload (inputs are updated)
  • delete .ipynb notebook and reopen source notebook (inputs disappear)
@betatim
Copy link

betatim commented Jul 20, 2018

To directly open a file via a link try https://mybinder.org/v2/gh/binder-examples/requirements/master?urlpath=/edit/requirements.txt this will open requirements.txt in a basic editor that is part of jupyter notebook. Take a look at the URI for this once it has opened, you should be able to deduce the general pattern for constructing links to files opened in an editor

I think jupyter lab has a slightly better editor, but not sure how to construct the URI off the top of my head.

@mwouts
Copy link
Owner Author

mwouts commented Jul 20, 2018

Great! That's exactly what I wanted. Thanks @betatim

@RaoOfPhysics
Copy link

To use Jupyterlab's editer, use this:

https://mybinder.org/v2/gh/binder-examples/requirements/master?urlpath=lab/tree/requirements.txt

Per the instructions here –– https://github.com/binder-examples/jupyterlab –– you need to change the urlpath from /edit/foobar.txt to /lab/tree/foobar.txt.

mwouts added a commit that referenced this issue Jul 25, 2018
mwouts added a commit that referenced this issue Jul 25, 2018
@mwouts mwouts closed this as completed in 8671123 Jul 26, 2018
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

No branches or pull requests

3 participants