hugo_jupyter icon indicating copy to clipboard operation
hugo_jupyter copied to clipboard

Matplotlib output, and additional fa parameter

Open erblast opened this issue 6 years ago • 2 comments

Hello,

thank you for that package I really appreciate your work. I am a data scientist wanting to start a blog with all the POC I have written in the past either as Rmarkdown or as jupyter notebook. To get things going I started with blogdown the R equivalent of your package.

So blogdown goes seamlessly from the .Rmd file to html format. It preserves all front-matter parameters, renders plots to the /static folder and creates equivalent links. It would be great to be able to have a seamless flow from jupyter to either .md or .html as well. For the moment it seems that I have to manually edit the .md file if I want to add fa parameters for example a thumbnail image, or author, etc.. and also if I want to include plots that have been generated by the code. Is there anything I am overlooking? I would like to avoid editing the .md file because I would loose the changes if I rerender the notebook.

I think probably one would just need to pass all fa parameters of the front matter dictionary in the json metadata to the .md file. It seems to me that at the moment only title, subtitle, data and slug are passed. Then copy the png files to /statis/date-slug/output_1_1.png and edit the links in the .md file accordingly.

But in any case, your tool has some great features and is a big help when converting notebooks to blogposts.

erblast avatar Aug 07 '18 22:08 erblast

sorryf or all this text, I have been looking at your functions in the fabfile and into the documentation of nbconvert. and it seems that one could easily get the images out as well. I think I will take some of your code as inspiration and write a custom renderfunction, and enter fa-parameters into the function calls instead of manually entering them with the jupyter GUI. If you are interested I will get back to you with my solution once I am done.

erblast avatar Aug 07 '18 22:08 erblast

https://www.datisticsblog.com/2018/08/post_with_jupyter/

erblast avatar Aug 11 '18 14:08 erblast