Need help with init_session

151 views
Skip to first unread message

Manipal Singh

unread,
Oct 24, 2015, 12:45:43 AM10/24/15
to sympy
Hello all,


First of all I'm a newbie and want to start contributing to sympy. While using init_session on live shell I'm getting:

Python console for SymPy 0.7.6 (Python 2.7.5-32-bit) (ground types: python)
These commands were executed:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t') 
>>> k, m, n = symbols('k m n', integer=True)
>>> f, g, h = symbols('f g h', cls=Function)
>>> init_printing()

Documentation can be found at http://www.sympy.org

>>>
Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/base/data/home/apps/s~sympy-live-hrd/45.380685391411058699/sympy/sympy/interactive/session.py", line 491, in init_session sys.exit('Exiting ...')
SystemExit: Exiting ...





I can't understand whether Traceback is a part of command executed, in case it is, want to know about it.
Screenshot from 2015-10-24 06:20:54.png

Aaron Meurer

unread,
Oct 24, 2015, 1:19:13 AM10/24/15
to sy...@googlegroups.com
init_session() is already run inside of SymPy live, so it's not
necessary. I'm not surprised that it doesn't actually work inside it,
as the app engine uses a different execution model from a regular
Python session.

Aaron Meurer
> --
> 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+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/81e1f9fe-93e7-406d-84ae-b4ac223fc498%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Manipal Singh

unread,
Oct 24, 2015, 7:50:37 AM10/24/15
to sympy
Thanks Aaron Meurer

I was not aware about that.
Reply all
Reply to author
Forward
0 new messages