Skip to content

ENH: Add Binder launch and live-code buttons to each tutorial - #323

Open
InessaPawson wants to merge 1 commit into
numpy:mainfrom
InessaPawson:305-binder
Open

InessaPawson wants to merge 1 commit into
numpy:mainfrom
InessaPawson:305-binder

Conversation

@InessaPawson

Copy link
Copy Markdown
Member

Adds per-tutorial launch buttons via the book theme's Jupyter integration. Closes #305.

NB: The buttons point at main, so postBuild takes effect only after this merges. Until then, clicking the rocket in the CircleCI preview opens the tutorial as plain Markdown.

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, I only wonder about the placement of the config file

Comment thread postBuild

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we maybe put this file in a .binder directory, just to stay a bit more organized?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsipocz @rossbar I've looked into it. Once .binder/ exists, repo2docker only reads config from there, so environment.yml would have to move to the folder as well. Would that work for you?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I have elsewhere is that the requirements file in .binder is referencing the one in the top level directory. Now, I believe that may not work with conda env files, but then maybe it's a good time that we ditch the otherwise duplicate environment.yml?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bsipocz I'd prefer to have a single source of truth for dependencies as well. I'll check if we can drop environment.yml without affecting existing workflows.

This branch has not been deployed

No deployments
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.

ENH: add binder/thebe link for each notebook

2 participants