jkitchin / ox-ipynb

org-mode exporter to Jupyter notebooks
170 stars 39 forks source link

Export scope not respected #15

Open ligon opened 5 years ago

ligon commented 5 years ago

The export dispatcher allows one to export either the entire buffer or a subtree by setting "Export scope".

ox-ipynb doesn't seem to respect this, and instead just exports the entire buffer?

One work-flow for me involves putting all my lecture notes into a single file, with a top-level headline for each lecture. It would be very convenient to be able to set the relevant scope from the dispatch buffer.

Thanks for considering!

jkitchin commented 5 years ago

I don't know if it is possible to do this. What you can do is manually narrow to the subtree you want to export, and then export it. ox-ipynb isn't a regular kind of exporter, so it doesn't support some things the usual ones do.

ligon commented 5 years ago

So I wonder why it isn't possible to simply use the specified export scope to decide whether to narrow to the current subtree or not first? I think this is the way that ox.el suggests.

Not to be an ingrate--this is a really nice tool!

jkitchin commented 5 years ago

If you can figure out and make sure it works, pull requests are welcome.