wolfram-notebook-embedder icon indicating copy to clipboard operation
wolfram-notebook-embedder copied to clipboard

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

Open portokallidis opened this issue 4 years ago • 1 comments

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?

portokallidis avatar Apr 05 '20 15:04 portokallidis

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.

kubaPod avatar Apr 06 '20 07:04 kubaPod