pelican-jupyter icon indicating copy to clipboard operation
pelican-jupyter copied to clipboard

Include a notebook from a remote location

Open andreagrandi opened this issue 7 years ago • 2 comments
trafficstars

Hi,

it would be very useful if the {% notebook path/from/content/dir/to/notebook.ipynb %} tag could include an .ipynb from an external location like {% notebook https://github.com/andreagrandi/ml-pima-notebook/blob/master/PimaIndiansDiabetes.ipynb %} so I could keep my project separate by the code.

Is it something already supported or that could be implemented in the future?

Cheers

andreagrandi avatar Nov 30 '17 16:11 andreagrandi

Its not supported right not but it could be supported in the future. Are you interested in making a PR? It could be a simple addition, check if the path is an URL, download it and call the other functions that do the conversion.

danielfrg avatar Nov 30 '17 17:11 danielfrg

@danielfrg hi! Thanks for your reply. I've never written or modified a Pelican plugin before, but I can always give it a try. Not next week but the one after I may have a few spare hours. In the mean time it's good to know that the feature doesn't exist yet and that I won't duplicate any existing code. Thanks!

andreagrandi avatar Nov 30 '17 19:11 andreagrandi