danielfrg / pelican-jupyter

Pelican plugin for blogging with Jupyter/IPython Notebooks
Apache License 2.0
422 stars 105 forks source link

Metadata in first cell not working on windows #130

Closed datadu-de closed 3 years ago

datadu-de commented 3 years ago

Hi Daniel, awesome plugin!

I tried to implement metadata Mode A Option 2 (use first cell in notebook for metadata).

This does not work on Windows (at least my environment), I get Permission Error on the temp-dir where tempfile tries to create the file to feed it as metadata to pelican.

I tried to create a PR for Pelican to also accept StringIO, but I couldnt figure it out.

Can you maybe have a look, and maybe expose a parameter to the pelican config if we cannot make pelican accept StringIO for this operation?

Much appreciated! Thanks! Frank