You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const scipy_opt =pynew()
function__init__()
pycopy!(scipy_opt, pyimport("scipy.optimize"))
end
It would be worth documenting this somewhere. Obviously a lot of folks are going to be coming from PyCall (and will know to be mindful of this) but it would be better to make this fact explicit, or indicate that this isn't required.
The text was updated successfully, but these errors were encountered:
The documentation could definitely do with a section on writing modules. And a section on coming from PyCall. I'll put it on my to-do list but feel free to contribute a PR.
First of all, thanks for working on this, I really appreciate these improvements from PyCall.
Seems like calling
pyimport
from the top level of a module in precompiled code would create issues.In PyCall, the following approach is recommended:
I think the equivalent in PythonCall would be
It would be worth documenting this somewhere. Obviously a lot of folks are going to be coming from PyCall (and will know to be mindful of this) but it would be better to make this fact explicit, or indicate that this isn't required.
The text was updated successfully, but these errors were encountered: