Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: pre-baked outputs #1

Open
jmansour opened this issue Dec 6, 2018 · 2 comments
Open

Feature request: pre-baked outputs #1

jmansour opened this issue Dec 6, 2018 · 2 comments

Comments

@jmansour
Copy link

jmansour commented Dec 6, 2018

Hi there.

Cheers for your work on juniper, it looks great. I'm going to try to roll it out to enable live documentation for our project.

Currently I'm thinking to configuring the pages to have expected cell outputs included statically directly after the juniper cells so people can review the page non-interactively, and also so we can potentially render pages out into a pdf document. While this is sufficient, it would certainly be nicer if juniper could be fed pre-baked outputs that it could display as default when a page is initially loaded. So if a user runs a cell interactively, the pre-baked output would be replaced with the live output.

Do you think this would be do-able without huge effort? Thanks for your efforts in any case!

@choldgraf
Copy link

In my experience, the best way to do this is to write some light-weight javascript that initializes juniper and does some other stuff in the process when this happens (like remove pre-rendered outputs etc).

playing around with this myself here: https://github.com/choldgraf/jupyter-book/pull/66

in case you're interested :-)

@jmansour
Copy link
Author

jmansour commented Jan 7, 2019

Thanks for the heads up @choldgraf. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants