Thank you Thomas.
-- Ruslan Dautkhanov On Tue, Aug 1, 2017 at 3:28 AM, Thomas Kluyver <[email protected]> wrote: > Hi Ruslan, > > On 1 August 2017 at 07:19, Ruslan Dautkhanov <[email protected]> wrote: > >> Can somebody please point to Jupyter documentation around this feature? >> > > It's fairly brief, but here: > http://ipython.readthedocs.io/en/stable/interactive/ > reference.html#manual-capture-of-command-output-and-magic-output > > >> E.g. found that quoting of curly brackets is done using {{..}} etc. >> If this documentation doesn't exist (I can't find where this is >> documented), please point to code >> that handles this logic. >> > > The expansion of variables and expressions is done by the var_expand() > method: > https://github.com/ipython/ipython/blob/8f50a3771614d3e22505eabc9332d1 > bc44af6f0e/IPython/core/interactiveshell.py#L3037 > > Running a shell command and capturing the output is the getoutput() method: > https://github.com/ipython/ipython/blob/8f50a3771614d3e22505eabc9332d1 > bc44af6f0e/IPython/core/interactiveshell.py#L2279 > > The escaped double curly braces {{...}} is part of Python's standard > string formatting machinery, which we use in var_expand(). > > Best wishes, > Thomas > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Project Jupyter" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/jupyter/83m6OYZ5ZPc/unsubscribe. > To unsubscribe from this group and all its topics, 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/CAOvn4qjcV58B2xzWS7w7-5GhNEX-0H8HFoE-Zpqty2w%3DC-JXMQ% > 40mail.gmail.com > <https://groups.google.com/d/msgid/jupyter/CAOvn4qjcV58B2xzWS7w7-5GhNEX-0H8HFoE-Zpqty2w%3DC-JXMQ%40mail.gmail.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/CACdThQ0mpaxjrtPhSPbp-1VoPxzochK_43FjGYX4Vr4j7eZsSg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
