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

Method to generate /statichtml/ version of the current state of the embedded notebook #10

Open
portokallidis opened this issue Apr 5, 2020 · 1 comment

Comments

@portokallidis
Copy link

As far as i understand, when a notebook is deployed/published the cloud generates a /statichtml/ version of the specific notebook.

Can this process be triggered manually on the client?

This is helpful when we need to take a "static" snapshot of the current progress of a notebook for archiving or versioning purposes and cannot use any rasterized image format which will result in losing the content (unsearchable, low res preview etc).

Is any other WL method available for such use?

@kubaPod
Copy link

kubaPod commented Apr 6, 2020

Quick comments:

Afaik internal methods to manage statichtml are not exposed.

Alternatively you can use ExportString[_Notebook, "HTML"] but my bet is it is far inferior to statichtml methods. Moreover, if you have css patches in place then I don't think they fit both results.

@poeschko We could 'save as...'/deploy notebook on demand to save those snapshots but there's gonna be a lot of those notebooks and all WL methods/dependencies which are embedded there will be copied unnecessarily for each case even though only a staticthml is needed. So the problem is not that we can't achieve a specific effect, we can but we need to do this efficiently as well.

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