From bdeb864c0a301ddeb40872235e36533fd0785d18 Mon Sep 17 00:00:00 2001 From: Lilith Orion Hafner Date: Tue, 12 Sep 2023 11:54:47 -0500 Subject: [PATCH] Fix language tag and make example pasteable in README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7053153..4c256d2 100644 --- a/README.md +++ b/README.md @@ -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)