Keep an updated export of every notebook you edit for quick viewing and publishing! ๐
(@v1.7) pkg> add PlutoLiveExportUse the following code to start Pluto instead of the standard Pluto.run way.
using Pluto, PlutoLiveExport
Pluto.run(; on_export=live_export())Make sure to call live_export as a function (live_export())
By default this will automatically make exports to ~/Documents/Pluto Exports every time you make a change in a notebook. You can change where these exports get placed by providing a path to the export_path keyword argument.
using Pluto, PlutoLiveExport
Pluto.run(; on_export=live_export(; export_path = "/my/export/path"))The only positional argument of live_export is format, which can be used to switch export formats from the default of HTML. The currently supported export formats are:
- html
- statefile
As an example, to export to statefiles we would use live_export("statefile").
To export into multiple formats simultaneously, pass a vector of formats instead.
live_export(["html", "statefile"])List of keyword arguments for live_export:
export_path- Folder that exports are saved in- that's it for now :)