Code Monkey home page Code Monkey logo

Comments (3)

JanPalasek avatar JanPalasek commented on July 17, 2024 1

@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.

avivajpeyi avatar avivajpeyi commented on July 17, 2024

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
Screen Shot 2023-01-18 at 4 11 22 pm

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.

JanPalasek avatar JanPalasek commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.