VHP4Safety / vhp4safety-docs

https://docs.vhp4safety.nl/
0 stars 2 forks source link

Look up how to add the Google Colab / MyBinder (etc) button. #22

Closed egonw closed 6 months ago

egonw commented 8 months ago

MyBinder

The pattern is like https://mybinder.org/v2/gh/$ORG/$REPO/$BRANCH?labpath=$SOMEPATH/$IPYNB, e.g. https://mybinder.org/v2/gh/VHP4Safety/vhp4safety-docs/main?labpath=tutorials/sombiesite_of_metabolism_prediction.ipynb

A badge can then look like this (replace the URL with the above):

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sbonaretti/FAIR_metrics/master?filepath=code%2FFAIR_assessment_2.ipynb)  

Google Colab

The pattern is like https://colab.research.google.com/github/$ORG/$REPO/blob/$BRANCH/$SOMEPATH/$IPYNB, e.g. https://colab.research.google.com/github/VHP4Safety/vhp4safety-docs/blob/main/tutorials/sombie/site_of_metabolism_prediction.ipynb

egonw commented 8 months ago

@ozancinar, can you please add badges for both to the tutorials that link back to a notebook? Maybe both badges on a single, but separate row, next to each other?

ozancinar commented 6 months ago

Links and Badges to Google Colab have been added to BridgeDb and SOM Prediction tutorials for testing purposes.