After upgrading my Fedora installation to F26, I notice that ipython now seems to call jupyter directly which does not have the concept of profiles any more, as can be found via google relatively quickly.
What I miss, however, is a canonical replacement for --profile="sympy" as a standard profile. It used to set up pretty printing, loading sympy and pre-define a few variable names, all pretty convenient. However, the profile is now completely gone from my system. I could probably dig up some old version on the internet or try to handwrite one myself, but there should be a standard replacement mechanism for this?
In [1]: from sympy import init_session
In [2]: init_session()
and this works just fine in jupyter. Still, it would be nice if there was some shortcut for it as it takes more effort than necessary to remember and to type this. In the past, I had a shell alias for sympy which asks for the sympy profile, but obviously this is not supported any longer. Creating a dedicated sympy kernel as you suggest seems possible but a bit heavy-handed for such a simple thing (and nothing I can tell my students in order to lower the barrier of entry...).
Yes, I do need to switch profiles as I am using both pylab and sympy interactively. Funny enough, ipython has a builtin magic for pylab, but none for sympy. I am not sure how much this forum is connected to ipython, but that would be an obvious trivial thing to add that would more or less solve the issue of getting a working sympy console quickly in the most obvious way.
Regards,
Marcel
In the past, I had a shell alias for sympy which asks for the sympy profile, but obviously this is not supported any longer.
Creating a dedicated sympy kernel as you suggest seems possible but a bit heavy-handed for such a simple thing (and nothing I can tell my students in order to lower the barrier of entry...).
Yes, I do need to switch profiles as I am using both pylab and sympy interactively. Funny enough, ipython has a builtin magic for pylab, but none for sympy. I am not sure how much this forum is connected to ipython, but that would be an obvious trivial thing to add that would more or less solve the issue of getting a working sympy console quickly in the most obvious way.
On 1 August 2017 at 11:45, <oli...@member.ams.org> wrote:In the past, I had a shell alias for sympy which asks for the sympy profile, but obviously this is not supported any longer.I think sympy still has 'isympy' to launch an IPython console with sympy already set up.
Creating a dedicated sympy kernel as you suggest seems possible but a bit heavy-handed for such a simple thing (and nothing I can tell my students in order to lower the barrier of entry...).It's very light in computer terms - just a couple of tiny files on your disk. I agree it's not very convenient for students, though. I can't think of anything you can do to make it simpler for them than importing and calling a function.
Yes, I do need to switch profiles as I am using both pylab and sympy interactively. Funny enough, ipython has a builtin magic for pylab, but none for sympy. I am not sure how much this forum is connected to ipython, but that would be an obvious trivial thing to add that would more or less solve the issue of getting a working sympy console quickly in the most obvious way.
The %pylab magic is gently deprecated, and I doubt we'd go for a new magic command to integrate with a particular module - sorry!