Skip to content

Support for Multi-Threading with PythonCall? #330

Closed
@nic-barbara

Description

@nic-barbara

Are there any plans to support multi-threading with PythonCall.jl in the near future? Almost everything about this package is superior to PyCall.jl except for thread safety.

Specifically, it would be great (and in my case - is essential) to be able to call python functions on many threads in parallel. This is useful when a core routine is written in python and needs to be called many time independently.

For example, some environments in ReinforcementLearning.jl rely on the python bindings to MuJoCo. Evaluating these environments efficiently requires multi-threading (eg: this implementation with PyCall.jl), which is currently impossible in PythonCall.

Is this something you would consider supporting in the near future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststaleIssues about to be auto-closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions