Hi,
this is weird, and I know it has worked a couple of days ago. I am puzzled and not sure what to check anymore.
I am running the MacPorts Python installation
which python
in terminal gives
/opt/local/bin/python
In Textmate, I have the following Shell Variables set:
TM_PYTHON = /opt/local/bin/python
PYTHONPATH = /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
When I run the script shown below from terminal using
python testscript.py
the matplotlib window pops up, and all is good.
When I run the script from within TextMate using cmd-R the script runs fine unitl just before the plt.figure() line. Then in the dock the "python rocket" symbol launches, but no Matplotlib window pops open, no error message, just the bouncing python rocket.
I tried changing backends in the matplotlibrc, but only "MacOSX" results in no error message, which is what I have previously used.
What could the reason be why matplotlib doesn't work anymore from within TextMate?
Thanks for your help!
Cheers,
Claus
import matplotlib.pyplot as plt
import numpy as np
import scipy.special as sps
# create x-array
t = np.arange(-3.0, 3.0, 0.01)
# create y-array
x = sps.erf(t)
# print x-array vs. y-array
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(t, x)
plt.show()
# printx-array and. y-array, just to see something
print t
print x
print "done! Yay!"
Hello all!
I was wondering if there was a modification or bundle that would allow to right click on a file or template in the
project drawer, to create a new file from that file/template, rather than right clicking and creating new file, then pasting the info manually, I'm just looking for a faster workflow, as I create dozens of pages a day, and this would
be helpful!
bill
On Jul 1, 2010, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
> textmate(a)lists.macromates.com
> On 1 Jul 2010, at 22:16, Watts Martin wrote:
>
>> I've noticed that at some point, the Control-Shift-P shortcut that
>> should
>> show the scope of the text the pointer is at stopped working. [...]
>
> The action is in the Bundle Development bundle. You probably disabled
> it via Bundle Editor ? Filter List?
Thanks for the fix, Allan--I was wondering what had become of mine too.
Hi I'm trying to configure my Textmate project/env to be able to find
included/required files.
I believe one way is to set a project specific environment variable
PHP_INCLUDE_PATH.
As far as I know this should be colon separated, so something like this
should be okay:
.:./src/:./src/mode/
But (command)+(shift)+d, that is 'Jump to included file' just reports: File
not found.
Should I prepend TM_PROJECT_DIRECTORY? and how would i do that?
{$TM_PROJECT_DIRECTORY}:
{$TM_PROJECT_DIRECTORY}/src/:{$TM_PROJECT_DIRECTORY}/src/model/
--
Michael Bøcker-Larsen
Hello,
in ruby on rails mode ctrl-h should show me the documentation of the
selected method. But I always get a window with the ri-documentation.
The headline is 'Documentation for xxxxx', but the content is the help
text of ri.
any ideas?
TIA,
Martin
Hello,
How can I search my files in textmate for:
<spaces...>USE<space>
Where <spaces...> is any number of spaces and <space> is just one space.
Thanks!
Patrick
I apologize if this is a duplicate message. I kept getting a bounce from this list.
Hi -- I am new to TextMate. I tried to do some simple key bindings reassignments as
described in section 16.3 in the help. Namely, I copied KeyBindings.dict to
~/Library/?Application Support/TextMate and edited it. I reversed the roles of ^q and
^j and changed what was ^~q to ^~j . I relaunched TextMate.
The result was that ^~j now performs the "unwrap text" command, but the three keys
(^q, ^j, ^~q) still maintain their old functions. What am I doing incorrectly? Thx.
-- pr
This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you.
Say you copy and paste some snippet of code into yours and it's in HTML. Most often, for me, it's script tags. In Textmate, just select the whole thing, press Cmd+Opt+R, and use html2haml as the command. Use "selection" as the input and "replace selection" as the output.
Just like that, beautiful Haml!
Works with Sass as well. Just use css2sass.
Steve
hi there - I'm trying to make a simple macro that will perform the 'Open in Running Browser' operation *and then actually switch window focus over to the open page in the browser*!
it's a bit strange that TM doesn't do this automatically but whatever.
I tried making a simple little macro so I could just code it in by hand but I'm not proficient enough with whatever scripting language TM uses for it's macros (Ruby?)
anyway, mayhap there is a simple solution to this? it seems like there should be!
cheers,
bennett