rikhuijzer / PlutoStaticHTML.jl

Convert Pluto notebooks to HTML in automated workflows
https://PlutoStaticHTML.huijzer.xyz
MIT License
82 stars 7 forks source link

cell order / package loading and latex equation: example #200

Open lmiq opened 2 weeks ago

lmiq commented 2 weeks ago

While trying to render this notebook, I had the following issues:

  1. The packages are not installed by the notebook itself (I had to install them in the make.jl file). Probably this is a feature to avoid installing packages repeatedly for each notebook, but should probably be an option, as it breaks the self-consistency of the notebook.

  2. The cell order matters. Specifically, in the notebook I ran, for example, using Unitful in cells at the end of the notebook. That does not seem to work.

  3. A latex equation that is in the notebook was not rendered:

Should be: image

How it was rendered: image

ander.jl.zip

rikhuijzer commented 2 weeks ago

The installation is possible. The right option is use_distributed if I remember correctly.

See the API docs at https://plutostatichtml.huijzer.xyz/stable/#API-overview.

There is also information about getting math to work.

I am currently on vacation by the way and only have a phone so I won’t be able to give more timely and detailled help.

lmiq commented 2 weeks ago

The math description is there, thanks. The use_distributed is only documented to run or not the notebooks in parallel, so if it has an effect on the installation, that's not clear.

Have a nice vacation (don't worry about this, it is not urgent :-) ) .

rikhuijzer commented 2 weeks ago

Sorry that’s not properly documented indeed but it should definitely have an effect. With use_distributed, Pluto will spawn separate Julia environments in different threads, and manage these environments (including installing packages).