Skip to content

hiding import_from preamble to a submodule? #385

@mmikhasenko

Description

@mmikhasenko

In order to use Clebsch-Gordan coefficients (clebsch_gordan) and Wigner D (WignerD), I have to start my notebook with the 8 lines block.

using SymPy
import PyCall
#
PyCall.pyimport_conda("sympy.physics.quantum.spin", "sympy")
PyCall.pyimport_conda("sympy.physics.wigner",       "sympy")

import_from(sympy.physics.quantum.spin, (:WignerD,), typ=:Any)
import_from(sympy.physics.wigner)
import_from(sympy.physics.quantum.spin)

I would love to have it defined in the package and just use using SymPy.Physics or using SymPy.Spin, or something similar.
Any good suggestions?

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