[sympy] Is it safe to use sympy in multi-threaded environment?

2020-08-08 Thread Paul Royik
If a couple of users use sympy at the same time (like live.sympy.org), is it considered safe? What about cache? -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+u

Re: [sympy] Is it safe to use sympy in multi-threaded environment?

2020-08-08 Thread Oscar Benjamin
I don't know the inner workings of SymPy Live but I would imagine that it uses a separate process for each user so that it isn't really running SymPy in a multi-threaded environment. On Sat, 8 Aug 2020 at 16:09, Paul Royik wrote: > > If a couple of users use sympy at the same time (like live.symp

Re: [sympy] Proposing a SymPy workshop at PyCon India

2020-08-08 Thread Nikhil Maan
Thank you for the suggestions. I'll take a look at these and start moving the notebooks to the sympy-notebook repo. On Friday, August 7, 2020 at 1:39:20 PM UTC+5:30 asme...@gmail.com wrote: > There's also https://github.com/sympy/scipy-2016-tutorial (there may > be a newer version somewhere). >

Re: [sympy] Is it safe to use sympy in multi-threaded environment?

2020-08-08 Thread Paul Royik
If sympy is run in multi-threaded environment, like apache, is it safe? Does cache require special handling? On Saturday, August 8, 2020 at 7:22:26 PM UTC+3, Oscar wrote: > > I don't know the inner workings of SymPy Live but I would imagine that > it uses a separate process for each user so that

Re: [sympy] Is it safe to use sympy in multi-threaded environment?

2020-08-08 Thread Aaron Meurer
I wouldn't recommend using threads with SymPy. Even if it works (which I expect it won't because we do have global things like the cache), the Python GIL would prevent it from truly working concurrently. Instead, use different processes. Aaron Meurer On Sat, Aug 8, 2020 at 2:32 PM Paul Royik wro

[sympy] Releasing 1.6.2

2020-08-08 Thread Oscar Benjamin
Hi all, I want to release 1.6.2 which fixes a bunch of things: https://github.com/sympy/sympy/milestone/56?closed=1 Two issues are unfixed though: https://github.com/sympy/sympy/issues/19839 https://github.com/sympy/sympy/issues/19920 I'm going to go away soon (on holiday) so I want to put the r