PythonCall.jl icon indicating copy to clipboard operation
PythonCall.jl copied to clipboard

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

Open CarloLucibello opened this issue 1 year ago • 1 comments

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?

CarloLucibello avatar Feb 09 '24 15:02 CarloLucibello

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

cjdoris avatar Feb 17 '24 11:02 cjdoris