Skip to content

Commit 5b28049

Browse files
torfjeldennicandro
authored andcommitted
added a brief description in README as requested
1 parent 55e6e6c commit 5b28049

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.org

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,13 @@ generated and the image is written
397397
to =org-babel-jupyter-resource-directory=. To specify your own file name
398398
for the image, set the =:file= header argument.
399399

400+
If no file extension is specified in the provided =:file=, then one will be inferred
401+
from the returned output. This can be useful in scenarios where the file resulting
402+
from the src-block can have different types depeneding on the code, e.g. if the image
403+
type returned can be either =png= or =svg= depending on certain settings, you can
404+
specify =:file = output= which will be converted into =output.png= or =output.svg=
405+
depending on the MIME type return by the executed src-block.
406+
400407
**** Changing the mime-type priority with the =:display= argument
401408

402409
The priority of mimetypes used to display results can be overwritten using the

0 commit comments

Comments
 (0)