[TxMt] textmate and matplotlib

0 views
Skip to first unread message

Claus

unread,
Jan 8, 2010, 8:44:37 AM1/8/10
to text...@lists.macromates.com
Hi,
is anybody here using TextMate with matplotlib/python?

I can execute scripts that contain matplotlib code perfectly well from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/scatter_hist.py for example), but when I run them from within TextMate, python keeps running endlessly, no error.

Any thoughts why this might be?
Thanks,
Claus


Allan Odgaard

unread,
Jan 9, 2010, 11:20:24 AM1/9/10
to TextMate users
On 8 Jan 2010, at 14:44, Claus wrote:

> I can execute scripts that contain matplotlib code perfectly well
> from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/scatter_hist.py
> for example), but when I run them from within TextMate, python
> keeps running endlessly, no error.

This could be caused by the interactive input library we inject into
Python (or the enabling of a flat namespace for the linker, whcih a
Python library has previously been incompatible with).

The easy fix is to:

rm /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
tm_interactive_input.dylib

There is also an environment variable you can set, but I can’t find it
ATM (away from my regular machine), I’ll have the troubleshooting
pages updated with this info.


_______________________________________________
textmate mailing list
text...@lists.macromates.com
http://lists.macromates.com/listinfo/textmate

Reply all
Reply to author
Forward
0 new messages