You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by Tagar <gi...@git.apache.org> on 2017/08/01 15:59:47 UTC

[GitHub] zeppelin issue #2502: [ZEPPELIN-2807] Passing Z variables to SQL Interpreter...

Github user Tagar commented on the issue:

    https://github.com/apache/zeppelin/pull/2502
  
    Info from Jupyter comitter @takluyver 
    
    > 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().
    >  



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---