The $nb_path syntax doesn't get replaced inside single quotes. Looking at
the code for it in IPython, this is deliberate, and has not changed in
quite a while. You can use double quotes ("$nb_path"), or you can use the
format-style syntax ('{nb_path').On 30 October 2017 at 21:59, DG <[email protected]> wrote: > Hello, > I am not sure when this started (perhaps with Jupyter 5?), but I used > to be able to save an HTML copy of my notebook using this: > > !jupyter nbconvert '$nb_path' --output '$nfname' > > where nb_path is the full path of the notebook (.ipynb file) and nfname is > the full path of the HTML file, ending in .html > > Like I said, this used to work with no problem, but now I get: > > ["[NbConvertApp] WARNING | pattern '$nb_path' matched no files", > > > However, nb_path surely exists: > > os.path.exists(nb_path) > > returns True. > > And, if I enter the same command in terminal, it works just fine. > > Any ideas? > > -- > 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/da12e9aa-b3cd-46bf-b1d8-afc396994cf0%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/da12e9aa-b3cd-46bf-b1d8-afc396994cf0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAOvn4qhLzZ7VaWTBcbGp4Cp4RxMjn%3DcwUbVK0Sbrqn2FDks0Lg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
