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
It seems like it would be a good front end for diffeqpy which would allow users to easily build Julia functions and get the full speed. I would need help finding out how to vender it so it just shows up, but from there it should be quite straightforward. The macros couldn't be used, but the constructor form would work, and we can just add constructors that allow strings and convert internally to symbols so that it works natively from Python.
The text was updated successfully, but these errors were encountered:
@tkf I'm having some trouble using MTK from Python. Do you have any suggestions for things like symbols and arithmetic overloads?
from julia.api import Julia
jl =Julia(compiled_modules=False)
from julia import ModelingToolkit
from jl import Main
x = jl.eval("ModelingToolkit.Variable(:x)")
y = jl.eval("ModelingToolkit.Variable(:y)")
z = jl.eval("Symbol(\"x\")")
ModelingToolkit.Variable(z) # error
x+y # error
It seems like it would be a good front end for diffeqpy which would allow users to easily build Julia functions and get the full speed. I would need help finding out how to vender it so it just shows up, but from there it should be quite straightforward. The macros couldn't be used, but the constructor form would work, and we can just add constructors that allow strings and convert internally to symbols so that it works natively from Python.
The text was updated successfully, but these errors were encountered: