Uploaded image for project: 'TOREE'
  1. TOREE
  2. TOREE-337

%AddPythonDeps magic to install packages from Pypi

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      I would like to volunteer to work on add two "magic" to Toree, related to Python dependency managements:

      %AddPythonDeps
      Usage: %AddPythonDeps pypi_package_name [version]
      

      Download and install Python dependency from pypi.python.org and install it on the Spark cluster using pip. Transitive dependencies will be automatically retrieved.

      %AddPythonDist
      Usage: %AddPythonDist<url to dist>
      

      Download the distribution package (source distribution package or binary distribution package or wheel) and install it on the master and workers using pip.

      Example:
      One would be able to specify something like

      %AddPythonDeps numpy 1.1.1
      %AddPythonDeps requests 0.1.1
      

      I am working to bring pip and virtualenv support to Spark since we need to work on clean virtualenv. Here is a proposal on this subject and the pull request.

      Let me know if it would make sense within Apache Toree to have such feature (I think it's cool to let each job describes its python dependencies and have Spark automatically handle them properly!)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gaetan@xeberon.net gsemet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: