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.

Add option for execution at build time with binderbot

See original GitHub issue

Description / Summary

As we have discussed several times, it would be very cool to be able to execute the notebooks of your jupyterbook inside a specified binder environment. This would be done at build time, so a “jupyter-book build” process would trigger this execution, and the results of running the computation remotely would then be .

I could imagine an option in _config.yml like

execute:
  use_binderbot: true

which would turn on this feature.

Value / benefit

This would be useful for CI pipelines and for general consistency between build environment and binder environment. Some notebooks may require access to cloud resources (data, Dask Gateway, etc.) that are only available via binder in the cloud.

This would be very helpful for our Earth & Environmental Data Science book (https://github.com/earth-env-data-science/earth-env-data-science-book/issues/30#issuecomment-908393833).

Implementation details

Binderbot would be a good tool for the job.

I browsed the repository to try to find where the execution actually happens, but I couldn’t find it. Perhaps it is actually done by MyST-NB, in which case this issue perhaps needs to be transferred there?

Given that a binderbot could exist in multiple places, we may also want to define a specification for different execution engines.

In addition, there’s some ground work in Jupyter Cache that will make this more possible.

Tasks to complete

  • Figure out the right implementation and the infrastructure to use to prototype this
  • …implement and add tasks as needed

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
choldgrafcommented, Aug 30, 2021

~I’ll move this over to Jupyter Cache 👍~

Actually on second thought, we can just keep this one unless somebody really wants it in Jupyter Cache - I think that from a user’s perspective this would be a change in Jupyter Book so I’m happy to leave here. @chrisjsewell if you wish otherwise I’m happy to move it

I’ll also update the top comment with a few clarifications

0reactions
rabernatcommented, Aug 30, 2021

Thanks @chrisjsewell - that definitely looks like the right place to discuss this! Feel free to close here if you wish.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integrating JupyterBook and JupyterHubs via CI - Cloud
Context This post is an action item that emerged from a recent meeting organized ... before at Add option for execution at build...
Read more >
South Carolina Completes Preparations for Firing-Squad ...
South Carolina has completed preparations to execute the state's death-row prisoners by firing squad. In a news release issued on March 18, ...
Read more >
Test Execution in Software Testing: Exact Process and Plan ...
Learn what is Test case execution in Software testing. Learn how to execute test cases, what process and plan to follow with real...
Read more >
New Execution Method Touted as More 'Humane,' but ...
A new execution method would instead involve nitrogen hypoxia. ... off the execution, saying it was unable to access Miller's veins in time....
Read more >
Death row executions by firing squad can now be carried out ...
Previously scheduled executions were delayed by the South Carolina Supreme Court because firing squad was not an option for inmates to choose ...
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