[IPython-user] Ipython and Jython 2.50b
Wed Nov 12 16:15:51 CST 2008
Ok thanks a lot for quick responses all!
I will be messing around a bit to make ipython work on jython! then we will
get an ultimate weapon!
On Wed, Nov 12, 2008 at 7:56 PM, Fernando Perez <firstname.lastname@example.org>wrote:
> On Wed, Nov 12, 2008 at 11:49 AM, Ville M. Vainio <email@example.com>
> > On Wed, Nov 12, 2008 at 9:27 PM, Phyo Arkar <firstname.lastname@example.org>
> >> ImportError: No module named signal
> >> Is there any work around or , how can i use iptyhon with jython?
> > signal is easy (because it's not really needed). However, readline is
> > a more probably deal breaker, but not necessarily:
> > http://wiki.python.org/jython/ReadlineSetup
> A few years ago some of the jython guys in Boulder tried to get this
> to work at an ipython sprint, but at the time it was a royal nightmare
> and they didn't really get very far. But jython has made a LOT of
> progress since, so it would be great if you could keep us posted on
> your progress with this.
> Once you get readline working, you may need to work aroun
> sys._getframe, which I think is also missing from Jython (I could be
> wrong) and is used in a lot of places:
> bic128[ipython]> grin _getframe
> 214 : frame = sys._getframe(1)
> 160 : frame = sys._getframe(1)
> 192 : getsig = lambda fno: sys._getframe(fno+1).f_globals \
> 194 : getlvars = lambda fno: sys._getframe(fno+1).f_locals
> 140 : src = self.findsource(sys._getframe(1))
> 326 : f = sys._getframe(1)
> 333 : caller =
> 44 : f = sys._getframe(1)
> 375 : cf = sys._getframe(1)
> 623 : sys._getframe(depth+1).f_locals # locals
> 1622 : call_frame = sys._getframe(stack_depth).f_back
> 228 : frame = sys._getframe(1)
> 182 : cf = sys._getframe(1)
> 1369 : frame = sys._getframe(1)
> 1947 : call_frame = sys._getframe().f_back
> 57 : callerNS = sys._getframe(depth+1).f_locals
> 71 : callerNS = sys._getframe(2).f_locals
> 143 : self.debugger.set_trace(sys._getframe().f_back)
> 3834 : * IPython/Itpl.py (Itpl.__str__): Use a _getframe() call
> 826 : - A new function, sys._getframe(), returns the stack frame pointer
> But having ipython working on jython would definitely be great, so
> keep us posted.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user