Thanks! That was the ticket.
Here is what I ended up using:
((( resources['metadata']['name'] + '.ipynb'))): \attachfile{(((
resources['metadata']['name'] + '.ipynb')))} \\
The path seemed to be an empty string for me, but the name was ok.
Thomas Kluyver writes:
> On 8 October 2016 at 17:42, John Kitchin <[email protected]> wrote:
>
>> where filename is the name of the ipython notebook. Any idea on how to get
>> that variable in the jinja template?
>>
>
> Looking at the code, I think one of these should do it:
>
> resources['metadata']['name']
>
> resources['metadata']['path']
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
--
You received this message because you are subscribed to the Google Groups
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jupyter/m2k2diwlu4.fsf%40Johns-MacBook-Air.local.
For more options, visit https://groups.google.com/d/optout.