You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by cloverhearts <gi...@git.apache.org> on 2015/12/11 11:57:37 UTC

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

GitHub user cloverhearts opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/530

    ZEPPELIN-497 ] pyspark completion

    ![pyspark_completion](https://cloud.githubusercontent.com/assets/10525473/11742146/e8388f14-a040-11e5-815b-089a4c8d5ea1.gif)
    
    Added auto-complete for pyspark.
    autocomplete function will operate through the spark python tag '% pyspark'.
    short-cut = Ctrl + Shift + Space.
    
    
    jira issue : https://issues.apache.org/jira/browse/ZEPPELIN-497 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloverhearts/incubator-zeppelin ZEPPELIN-497

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-zeppelin/pull/530.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #530
    
----
commit ab05f869eafefe72acf2542f0db8b03fec9cdf7b
Author: CloverHearts <es...@gmail.com>
Date:   2015-12-11T10:50:52Z

    implement pyspark completion

----


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by prabhjyotsingh <gi...@git.apache.org>.
Github user prabhjyotsingh commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165015988
  
    Tested, works well :+1: 


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by cloverhearts <gi...@git.apache.org>.
Github user cloverhearts commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165312376
  
    ### Changed Filter Rule.
    
    Filter **__FunctionName**
    
    \__NAME\__ The form is not a target filter.


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165279932
  
    Working well. Thanks for very useful improvement.
    LGTM, Merge if there're no more discussions.


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165284025
  
    @cloverhearts thanks - to clarify the rule is two leading underscores (`__foo`)
    https://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables
    "To avoid name clashes with subclasses, use two leading underscores to invoke Python's name mangling rules. Python mangles these names with the class name: if class Foo has an attribute named __a , it cannot be accessed by Foo.__a"
    
    
    you do not match both leading and trailing (`__foo__`)



---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by cloverhearts <gi...@git.apache.org>.
Github user cloverhearts commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165341712
  
    @felixcheung Thank you for Feed back! have a nice day!


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by cloverhearts <gi...@git.apache.org>.
Github user cloverhearts commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165336959
  
    ### Filtering
    \__NAME\__ and \__NAME 
    
    Tested.


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by elbamos <gi...@git.apache.org>.
Github user elbamos commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-164232352
  
    @felixcheung  
    
    Miscellaneous requests for improvement belong in jiras. 
    
    Rather than giving everyone suggestions on what to do in their PRs, perhaps you should try making them as PRs of your own.  


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-zeppelin/pull/530


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by Leemoonsoo <gi...@git.apache.org>.
Github user Leemoonsoo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165668314
  
    LGTM
    Merge if there're no more discussions


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-164295712
  
    tested and working well! thanks for working on this


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by cloverhearts <gi...@git.apache.org>.
Github user cloverhearts commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165331927
  
    @felixcheung 
    Sorry,  I just modified. Tested after upload.


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by cloverhearts <gi...@git.apache.org>.
Github user cloverhearts commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165170268
  
    Filtering for '__FunctionName__ added.
    Thank you for Feed back.


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165341627
  
    looks good - thank you!


---
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.
---

[GitHub] incubator-zeppelin pull request: ZEPPELIN-497 ] pyspark completion

Posted by felixcheung <gi...@git.apache.org>.
Github user felixcheung commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/530#issuecomment-165330482
  
    sorry if it's confusing - the rule applies for any name that starts with `__`, so it includes both `__foo` and `__foo__` (eg. __getattr__)
    
    so I think the regex should be `^__.+` or `^__.*`


---
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.
---