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/8f50a3771614d3e22505eabc9332d1bc44af6f0e/IPython/core/interactiveshell.py#L3037

Running a shell command and capturing the output is the getoutput() method:
https://github.com/ipython/ipython/blob/8f50a3771614d3e22505eabc9332d1bc44af6f0e/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 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/CAOvn4qjcV58B2xzWS7w7-5GhNEX-0H8HFoE-Zpqty2w%3DC-JXMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to