@@ -82,14 +82,30 @@ called by your script. For example, if your project can be run as
8282 $ python -m duecredit script.py
8383
8484Alternatively, it may be more reliable to use environment variables to turn
85- on `duecredit `_ collection, since this approach also works with Jupyter Notebook ::
85+ on `duecredit `_ collection::
8686
8787 $ export DUECREDIT_ENABLE=yes # Bash
8888 PS> $Env:DUECREDIT_ENABLE = "yes" # PowerShell
89+
90+ Or, from within an Jupyter Notebook, environment variables can be set before
91+ import using::
92+
93+ import os
94+ os.environ['DUECREDIT_ENABLE'] = 'yes'
95+
96+ Whenever it is detected that this variable is true, any uses of **Qinfer ** in a
97+ given folder (even multiple distinct runs) will maintain
98+ a file in the same folder called ``.duecredit.p `` that contains
99+ a representation of your bibliography. This file is updated whenever **Qinfer **
100+ uses a module, class, or method that is appropriately tagged.
101+
102+ If you wish to see the citation compilaton of a *single * python session,
103+ you can dump the current state with::
104+
105+ qinfer.due.dump()
89106
90- In either case, this will create a file called ``.duecredit.p `` containing a representation
91- of your bibliography. To print it out in BibTeX form, use the summary functionality
92- of `duecredit `_::
107+ On the other hand, to print it out the entire ``.duecredit.p `` collection
108+ in BibTeX form, use the summary functionality of `duecredit `_::
93109
94110 $ duecredit summary --format=bibtex
95111
0 commit comments