Comments (3)
@avivajpeyi Hello, if I understand correctly, you want to have a button in the exported html file by pretty jupyter that sends you to the ipynb notebook on colab, right?
If so, then you can use standard html link with a button, for example something like this:
<button><a href="url/link/to/ipynb/notebook/in/colab" alt="alt">Button text</a></button>
Since both opening and downloading from colab should correspond to sending a GET request to an url, so you just need to find what that url is.
Did this answer help?
from pretty-jupyter.
Ah ok -- this is something I could just manually add to the top of my ipynb in a markdown cell.
I think I was wondering how to do this more like the executable book
version (a bar on the top)
http://catalog.tess-atlas.cloud.edu.au/content/toi_notebooks/toi_103.html
however, I think your suggestion will suffice!
(i have to switch away from the executable-book build as it takes too long to process 1000+s of pages, and I think your tool can be an alterative!)
from pretty-jupyter.
If you want to add the buttons to every notebook, you can create your own template. Check out this docs:
https://pretty-jupyter.readthedocs.io/en/latest/custom_template.html
It also has an example linked down below.
Also you can check out Quarto, I think it might have better support for these kind of documents and features.
from pretty-jupyter.
Related Issues (20)
- Sphinx
- Add options to TOC
- Export to pdf
- Add optional dependencies
- Metadata
- Section numbering HOT 1
- Create templates HOT 2
- 2.0.0 HOT 1
- Future work
- Not properly nesting TOC HOT 3
- Itables HOT 1
- <Tabsets> and <nbconvert --embed-images> can't be used together when exporting notebooks to html reports HOT 6
- Investigate blank space at the end HOT 5
- Errorneous table of content HOT 4
- pretty-jupyter compatible with SoS notebooks? HOT 2
- CI Fix HOT 1
- Table of contents (toc) does not show HOT 7
- ImportError: No module named RemoveInputPreprocessor for 2.0.0 above HOT 1
- pinned nbconvert 6 dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty-jupyter.