Pass args for solve_ivp (new SciPy ODE API) : <p>For solving simple ODEs using SciPy, I used to use the odeint function, with form:</p>

<pre><code>scipy.integrate.odeint(func, y0, t, args=(), Dfun=None, col_deriv=0, full_output=0, ml=None, mu=None, rtol=None, atol=None, tcrit=None, h0=0.0, hmax=0.0, hmin=0.0, ixpr=0, mxstep=0, mxhnil=0, mxordn=12, mxords=5, printmessg=0)[source]
</code></pre>

<p>where a simple function to be integrated could include additional arguments of the form:</p>

<pre><code>def dy_dt(t, y, arg1, arg2):
    # processing code here
</code></pre>

<p>In SciPy 1.0, it seems the <em>ode</em> and <em>odeint</em> funcs have been replaced by a newer <em>solve_ivp</em> method. </p>

<pre><code>scipy.integrate.solve_ivp(fun, t_span, y0, method='RK45', t_eval=None, dense_output=False, events=None, vectorized=False, **options)
</code></pre>

<p>However, this doesn't seem to offer an <em>args</em> parameter, nor any indication in the documentation as to implementing the passing of args.</p>

<p>Therefore, I wonder if arg passing is possible with the new API, or is this a feature that has yet to be added? (It would seem an oversight to me if this features has been intentionally removed?)</p>

<p>Reference:
<a href="https://docs.scipy.org/doc/scipy/reference/integrate.html" rel="noreferrer">https://docs.scipy.org/doc/scipy/reference/integrate.html</a></p>
