Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,962
    • Issues 1,962
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Issues
  • #18815
Closed
Open
Issue created Feb 22, 2019 by Scott Wittenburg@scott.wittenburgDeveloper

Feature Request: Better support for using external python modules

While there is a path allowing pvpython scripts to import arbitrary python modules by linking to a virtual environment (described in a blog post), it would be nice to have more comprehensive support for this. I'm proposing some notion of a linked virtual environment which ParaView could "activate", and then any modules in that virtual environment would be available to all of ParaView.

For example, if one has implemented a python plugin implementing a new reader, and that plugin depends on arbitrary python modules (which could be installed in a virtualenv), the approach described in the blog post can be adopted to support that use case by hardcoding the path to the virtual env directory in the reader plugin module, but that feels pretty clunky.

What would be nice is if ParaView supported the following things:

  1. Specify a virtual environment directory as a parameter to all of the paraview command-line programs (paraview, pvpython, pvbatch), perhaps something like --virtual-env or --link-virtualenv or similar.
  2. Keep track of that linked virtual environment in ParaView's stored configuration (so for example, it could be "turned off" by running with the -dr option)
  3. Perhaps allow setting the virtual environment path from within the ParaView settings dialog
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking