Offer models that are not dependent on Modelx #49
MatthewCaseres
started this conversation in
General
Replies: 1 comment 2 replies
-
To remove static syntax error, you can use variable annotation without initial values: import modelx as mx
m = mx.new_model()
bar: int
@mx.defcells
def foo():
return bar
m.bar = 3 I guess your attempt looks similar to acturtle/cashflower? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When developing a modelx model in a plain Python file (without using the modelx plugin for Spyder), static analysis tools will raise errors due to some of the syntax.
I'm interested in if you would take contributions that are not dependent on Modelx, or maybe have Modelx offer a syntax that is compatible with static analysis tools.
The VSCode Jupyter notebook plugin provides some features of the modelx plugin, like the data viewer. But it does not feel like writing normal Python to write the modelx model in Jupyter.
This is an attempt at a decorator that has a joint cache and aggregates results.
Beta Was this translation helpful? Give feedback.
All reactions