Skip to content

Document pyconvert_add_rule #125

Closed
Closed
@jverzani

Description

@jverzani

Well, I wanted this to be an "issue", but really I have a request for wee bit of help. I asked this on discourse (https://discourse.julialang.org/t/pythoncall-equivalent-to-pycalls-pytype-mapping/77086) but found no answers.

I want to see if I can use PythonCall to replace PyCall with SymPy.jl and to do so am looking for someway to automatically convert the underlying sympy objects into julia objects (such as Py, though with a type from SymPy.) I think the right approach is pyconvert_add_rule but can't seem to get it working. As a test case, my current use of PyCall::pytype_mapping to do this is basically: pytype_mapping(sympy.core.basic.Basic, Sym).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions