Skip to content

What's the easiest way to add "launch with colab" or "launch with binder" buttons? #1422

Answered by 12rambau
Zethson asked this question in Q&A
Discussion options

You must be logged in to vote

that's because they heavily rely on markdown and notebooks. the pydata-sphinx-theme on the other hand is build for any sphinx based documentation and most of them are written in .rst a format that is absolutely not compatible with colab or binder. I'm afraid if you want to create an "open with xx" you'll need to generate them manually.

Alternatively you could create a custom component inspired from the "edit from github" to get the content of your notebook (I assume the page is generated from one) and create a link to a new binder.

If you go down this path let us know it would worth being added to the "extend this theme" section.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Zethson
Comment options

@12rambau
Comment options

Answer selected by Zethson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants