Binder link for Pluto notebook. #399
Replies: 15 comments 1 reply
-
The local first run was pretty quick on my machine: |
Beta Was this translation helpful? Give feedback.
-
Does anybody know of a better place to try Pluto notebooks (or Jupyter) online/cloud than mybinder.org? |
Beta Was this translation helpful? Give feedback.
-
Hi! I didn't know about pluto-on-binder.glitch.me, but it seems to be doing the same as clicking the binder option in the notebook: Yesterday, I tried both approaches (pluto-on-binder and running binder directly in the notebook), and they are quite slow, as they are compiling the whole environment first. I also tried https://cocalc.com/ with little success (another option is https://glassnotebook.io/, which I didn't try). Jupyter notebooks on BinderFor Julia packages, MyBinder has a direct way of creating a docker image using the package GitHub repo. As this environment is already compiled, it just needs to download the image, which is a LOT faster and it works quite well for the tutorials (jupyter notebooks that work on Binder's JupyterLab instance). For example this tutorial. Launch KomaMRI using Binder's pre-built docker image This approach had a problem with Plotly figures (not WebIO found), but I added an Potential solutionUsing a slightly modified version of that docker image, we could potentially launch a Pluto server on Binder, by adding Whatever approach we decide, it would be nice to add launch-on binder buttons to every tutorial (reproducible or not) 😄 , but I would need some help with the Pluto notebooks. |
Beta Was this translation helpful? Give feedback.
-
Potentially useful links for setting up a Koma+Pluto image: |
Beta Was this translation helpful? Give feedback.
-
jupyter-pluto-proxyThis python package ads the capability to launch a Pluto notebook from JupyterLab and also has an example of jumping directly to Pluto. I am taking a look at various scenerios, but it could be added to KomaMRI so that the docker image has it installed. I'm guessing the Pluto dependency for the docker image can be kept separate from the KomaMRI.jl dependencies Launching from the KomaMRI prebuilt docker is definitely the way to go! |
Beta Was this translation helpful? Give feedback.
-
Examples from https://github.com/yuvipanda/jupyter-pluto-proxy This launches directly into Pluto: This launches into JupyterLab, with option to open Pluto notebook: |
Beta Was this translation helpful? Give feedback.
-
See PR #400 which should let it be tested with KomaMRI docker binder instance.It just adds |
Beta Was this translation helpful? Give feedback.
-
Still needed is a way to launch a Pluto notebook file along with the (KomaMRI) docker image into binder from a badge/url. A secondary issue is to launch a pluto-notebook from JupyterLab without first launching the Pluto instance. |
Beta Was this translation helpful? Give feedback.
-
Sample Binder RepositoriesBelow we list several sample Binder repositories that demonstrate how to compose build files in order to createBinders with varying environments. You can find all of the repositories listed on this page at the binder-examples GitHub organization. https://mybinder.readthedocs.io/en/latest/examples/sample_repos.html |
Beta Was this translation helpful? Give feedback.
-
repo2docker GitHub ActionTrigger repo2docker to build a Jupyter enabled Docker image from your GitHub repository and push this image to a Docker registry of your choice. This will automatically attempt to build an environment from configuration files found in your repository in the manner described here. |
Beta Was this translation helpful? Give feedback.
-
Use GitHub Actions To Cache The Build For BinderHubInstead of forcing mybinder.org to cache your builds, you can optionally build a Docker image with GitHub Actions and push that to a Docker registry, so that any BinderHub instance, including mybinder.org only has to pull the image. This might give you more control than triggering a build directly on mybinder.org like the method illustrated above. In this example, you must supply the secrets DOCKER_USERNAME and DOCKER_PASSWORD so that Actions can push to DockerHub. Note that, instead of your actual password, you can use an access token — which may be a more secure option. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
To open Pluto notebooks directly, there is an example here you just need to add |
Beta Was this translation helpful? Give feedback.
-
Carlos,
Awesome, I will try it out!
Curt
On 5 June 2024 3:49:47 am UTC, Carlos Castillo Passi ***@***.***> wrote:
To open Pluto notebooks directly, there is an example here
https://github.com/roualdes/plutonotebooks
https://mybinder.org/v2/gh/roualdes/plutonotebooks/main?urlpath=pluto/open?path=/home/jovyan/notebooks/beta.jl
you just need to add `open?path=notebook_path_in_binder.jl`
--
Reply to this email directly or view it on GitHub:
#399 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
--
Curtis A. Corum, Ph.D.
President and CEO
Champaign Imaging LLC
***@***.***
www.champaignimaging.com
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Here is a link that can generate a binder instance from a Pluto notebook:
https://pluto-on-binder.glitch.me/
I fed it the reproducibility notebook at:
https://raw.githubusercontent.com/JuliaHealth/KomaMRI.jl/master/examples/4.reproducible_notebooks/pluto-01-gradient-echo-spin-echo.jl
and generated the following:
https://binder.plutojl.org/v0.19.36/open?url=https%253A%252F%252Fraw.githubusercontent.com%252FJuliaHealth%252FKomaMRI.jl%252Fmaster%252Fexamples%252F4.reproducible_notebooks%252Fpluto-01-gradient-echo-spin-echo.jl
First time it ran for 1500 seconds and then stalled, in the precomplie step.
Beta Was this translation helpful? Give feedback.
All reactions