JuliaPy / PythonCall.jl

Python and Julia in harmony.
https://juliapy.github.io/PythonCall.jl/stable/
MIT License
717 stars 61 forks source link

[docs][PythonCall] document syntax for "from ... import ..." #453

Open CarloLucibello opened 4 months ago

CarloLucibello commented 4 months ago

It took me some digging through the issues to discover that the python import

from x import f as g

can be translated in julia to

using PythonCall
@py import x: f as g 

Can this be added to the PythonCall's guide in the documentation?

cjdoris commented 4 months ago

Sure, please make a PR to update the docstring for @py.