'Plotting phase portrait using matplotlib or matlab?
Solution 1:[1]
It's impossible to know without a minimal reproducible example so what follows is a guess.
I suspect @app.task requires the function to have some introspectable attribute that Cython doesn't provide by default. Things to try:
- Use the directive
#cython: binding=True. This makes Cython functions a custom object type that behave more like a regular function. - Use Cython 3 alpha (although who knows what version of Cython you're using here, since you don't say). It contains some improvements to function introspection (and enables
binding=Trueby default). - Write this bit of code in Python (you could use
execfor this for example).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | DavidW |

