code evalution for inline shell execution

22 views
Skip to first unread message

Ruslan Dautkhanov

unread,
Aug 1, 2017, 2:19:43 AM8/1/17
to Project Jupyter
Hello,

Apache Zeppelin is adding functionaility similar to Jupyter inline shell execution with {code} substitution, like
a = !ls -l dir/{var1+3}


Can somebody please point to Jupyter documentation around this feature?
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.


Thanks,
Ruslan Dautkhanov

Thomas Kluyver

unread,
Aug 1, 2017, 5:29:21 AM8/1/17
to Project Jupyter
Hi Ruslan,

On 1 August 2017 at 07:19, Ruslan Dautkhanov <dautk...@gmail.com> wrote:
Can somebody please point to Jupyter documentation around this feature?

 
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 escaped double curly braces {{...}} is part of Python's standard string formatting machinery, which we use in var_expand().
 
Best wishes,
Thomas

Ruslan Dautkhanov

unread,
Aug 1, 2017, 12:00:27 PM8/1/17
to jup...@googlegroups.com
Thank you Thomas.




--
Ruslan Dautkhanov

--
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 jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages