Skip to content

Commit

Permalink
Fix language tag and make example pasteable in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Sep 12, 2023
1 parent 5f2a4a6 commit bdeb864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ translate these docs to Python code.
Python does not allow `!` in function names, so this is also [a limitation of pyjulia](https://pyjulia.readthedocs.io/en/latest/limitations.html#mismatch-in-valid-set-of-identifiers)
To use functions which on the Julia side have a `!`, like `step!`, replace `!` by `_b`, for example:

```julia
```py
from diffeqpy import de

def f(u,p,t):
return -u

u0 = 0.5
tspan = (0., 1.)
prob = de.ODEProblem(f, u0, tspan)
Expand Down

0 comments on commit bdeb864

Please sign in to comment.