guberti commented on PR #10921: URL: https://github.com/apache/tvm/pull/10921#issuecomment-1099903109
# How does "Open in Colab" work? Google Colab has a feature where using a URL, `.ipynb` files can be loaded from GitHub links. It just so happens that TVM's doc files are already held at https://github.com/apache/tvm-site/tree/asf-site, so we only need to point Google Colab to that. Since this tutorial is not yet merged, all the "Open in Colab" button is is a link to the following address: https://colab.research.google.com/github/guberti/tvm-site/blob/asf-site/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb # What had to be changed to get this working? In theory, nothing about Sphinx Gallery would have to be changed to make this work. However, in practice the generation of `.ipynb` files is extremely buggy, so the output Python notebooks do not work anyway. I made two pull requests to add features to Sphinx Gallery to make this possible: - https://github.com/sphinx-gallery/sphinx-gallery/pull/940 - https://github.com/sphinx-gallery/sphinx-gallery/pull/941 If these features are merged into `sphinx-gallery`, then we only need to update the version of `sphinx-gallery` to make opening tutorials in Colab possible. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
