Crashing and opening problems

2020-10-09 Thread Jamie
I’ve downloaded python and when I try to launch a application to use with python it opens then closes fast but when I double click it it opens the installer and not python, so I have to use “Open with”     Sent from [1]Mail for Windows 10   References Visible links

Re: Requests for webbrowser module

2016-09-16 Thread Jamie Ansell
Thanks for your help, I realise that what I wanted was chromes default new tab page, not a blank page. 'about:blank' worked fine but it wasn't what I wanted sorry. I'll try the CTRL+4 later and see it that works. On 14 Sep 2016 21:11, "John Gordon" wrote: > In

Requests for webbrowser module

2016-09-14 Thread Jamie
Hi, I am not sure if this is an intended consequence but when using the webbrowser module to open a new blank browser tab in chrome it opens it in a new browser window instead of using the current window. Providing any complete url provides different behaviour, it opening a new tab in the cur

Proposal for new minor syntax

2015-03-27 Thread Jamie Willis
itted as a PEP? What are the potential concerns I could consider with the syntax? Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib Contour Plots

2014-08-20 Thread Jamie Mitchell
On Tuesday, August 19, 2014 10:21:48 PM UTC+1, pec...@pascolo.net wrote: > Jamie Mitchell writes: > > > > > You were right Christian I wanted a shape (2,150). > > > > > > Thank you Rustom and Steven your suggestion has worked. > > > > >

Re: Matplotlib Contour Plots

2014-08-19 Thread Jamie Mitchell
r the frequency or amount of times that the X-axis data and Y-axis data meet at a particular point or bin. Does anyone know what function or graph could best show this? Thanks for all your help, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib Contour Plots

2014-08-18 Thread Jamie Mitchell
I forgot to mention that when I try: a=np.array([[hs_con_sw],[te_con_sw]]) I get a 3D shape for some reason - (2,1,150) which is not what I'm after. Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib Contour Plots

2014-08-18 Thread Jamie Mitchell
On Friday, August 15, 2014 4:13:26 PM UTC+1, Steven D'Aprano wrote: > Jamie Mitchell wrote: > > > > > I created the 2D array which read as: > > > > That's not a 2D array. > > > > When the amount of data you have is too big to clearly s

Re: Matplotlib Contour Plots

2014-08-15 Thread Jamie Mitchell
On Friday, August 15, 2014 2:23:25 PM UTC+1, Steven D'Aprano wrote: > Jamie Mitchell wrote: > > > > [...] > > > I just want to get a contour plot of two numpy arrays. > > > When I call plt.contour on my data I get "input must be a 2D array" >

Re: Matplotlib Contour Plots

2014-08-15 Thread Jamie Mitchell
On Thursday, August 14, 2014 5:53:09 PM UTC+1, Steven D'Aprano wrote: > Jamie Mitchell wrote: > > > > > Hello all, > > > > > > I want to contour a scatter plot but I don't know how. > > > > > > Can any

Matplotlib Contour Plots

2014-08-14 Thread Jamie Mitchell
Hello all, I want to contour a scatter plot but I don't know how. Can anyone help me out? Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Contouring a 2D histogram

2014-06-27 Thread Jamie Mitchell
.masked_where(H==0,H) plt.pcolormesh(xedges,yedges,Hmasked,cmap=cmap,norm=norm,label='Q0 control') # From this I get a 'scattered' 2D histogram. Does anyone know how I can contour that scatter? Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib Colouring outline of histogram

2014-06-20 Thread Jamie Mitchell
On Friday, June 20, 2014 9:10:58 AM UTC+1, Jamie Mitchell wrote: > Hi folks, > > > > Instead of colouring the entire bar of a histogram i.e. filling it, I would > like to colour just the outline of the histogram. Does anyone know how to do > this? > > Version -

Re: Matplotlib Colouring outline of histogram

2014-06-20 Thread Jamie Mitchell
On Friday, June 20, 2014 2:47:03 PM UTC+1, Jason Swails wrote: > On Fri, Jun 20, 2014 at 4:10 AM, Jamie Mitchell wrote: > > Hi folks, > > > > Instead of colouring the entire bar of a histogram i.e. filling it, I would > like to colour just the outline of the histogr

Re: Problem with numpy 2D Histogram

2014-06-20 Thread Jamie Mitchell
On Friday, June 20, 2014 9:46:29 AM UTC+1, Jamie Mitchell wrote: > Hi folks, > > > > I'm trying to plot a 2D histogram but I'm having some issues: > > from pylab import * > > import numpy as np > > import netCDF4 > > hist,xedges,yedges=

Re: Problem with numpy 2D Histogram

2014-06-20 Thread Jamie Mitchell
On Friday, June 20, 2014 12:00:15 PM UTC+1, Peter Otten wrote: > Jamie Mitchell wrote: > > > > > I have changed my x and y data to float64 types but I am still getting the > > > same error message? > > > > Please double-check by adding > >

Re: Problem with numpy 2D Histogram

2014-06-20 Thread Jamie Mitchell
On Friday, June 20, 2014 10:25:44 AM UTC+1, Peter Otten wrote: > Jamie Mitchell wrote: > > > > > Hi folks, > > > > > > I'm trying to plot a 2D histogram but I'm having some issues: > > > from pylab import * > > > im

Problem with numpy 2D Histogram

2014-06-20 Thread Jamie Mitchell
27;) colorbar() show() After the first line of code I get: TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe' I'm using python2.7, x and y are type 'numpy.ndarray' Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Matplotlib Colouring outline of histogram

2014-06-20 Thread Jamie Mitchell
Hi folks, Instead of colouring the entire bar of a histogram i.e. filling it, I would like to colour just the outline of the histogram. Does anyone know how to do this? Version - Python2.7 Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Overlaying a boxplot onto a time series figure

2014-06-06 Thread Jamie Mitchell
(year_fut,fit_fn_Q16_fut_sw(year_fut),'c') plt.legend(loc='best') plt.xlabel('Year') plt.ylabel('Significant Wave Height annual averages SW England') plt.title('Time series of Significant Wave Height') plt.show() Code for boxplots: python2.7 from pylab import * import netCDF4 data=(hs_Q0_con_sw,hs_Q3_con_sw,hs_Q4_con_sw,hs_Q14_con_sw,hs_Q16_con_sw) figure(1) boxplot(data) labels=('QO no pert','Q3 low sens','Q4 low sens','Q14 high sens','Q16 high sens') xticks(range(1,6),labels,rotation=15) xlabel('Ensemble Member') ylabel('Significant Wave Height Annual Average') title('Significant Wave Height SW England 1981-2010') show() If anybody knows how I could integrate these two plots I would be eternally grateful! Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib - specifying bin widths

2014-06-06 Thread Jamie Mitchell
On Thursday, June 5, 2014 4:54:16 PM UTC+1, Jamie Mitchell wrote: > Hello all! > > > > Instead of setting the number of bins I want to set the bin width. > > > > I would like my bins to go from 1.7 to 2.4 in steps of 0.05. > > > > How do I

Re: Adding R squared value to scatter plot

2014-06-05 Thread Jamie Mitchell
On Wednesday, May 21, 2014 1:30:16 PM UTC+1, Jason Swails wrote: > > > > > > > On Wed, May 21, 2014 at 7:59 AM, Jamie Mitchell wrote: > > I have made a plot using the following code: > > > > python2.7 > > import netCDF4 > > impo

Matplotlib - specifying bin widths

2014-06-05 Thread Jamie Mitchell
Hello all! Instead of setting the number of bins I want to set the bin width. I would like my bins to go from 1.7 to 2.4 in steps of 0.05. How do I say this in the code? Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Adding R squared value to scatter plot

2014-05-21 Thread Jamie Mitchell
fut_sw,1) fit_fn_Q16_sw=np.poly1d(fit_Q16_sw) plt.plot(hs_Q16_con_sw,hs_Q16_fut_sw,'c.') plt.plot(hs_Q16_con_sw,fit_fn_Q16_sw(hs_Q16_con_sw),'c',label='Q16 high sens') plt.legend(loc='best') plt.xlabel('Significant Wave Height annual averages NW Scotland 1981-2010') plt.ylabel('Significant Wave Height annual averages NW Scotland 2040-2069') plt.title('Scatter plot of Significant Wave Height') plt.show() -- What I would like to do is display the R squared value next to the line of best fits that I have made. Does anyone know how to do this with matplotlib? Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Saving a file as netCDF4 in Python

2014-05-08 Thread Jamie Mitchell
x27;] year=swh.variables['year'] I would then like to save these hs and year variables so that I don't have to isolate them every time I want to plot them. Any help would be much appreciated. Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: len() of unsized object - ks test

2014-04-25 Thread Jamie Mitchell
On Friday, April 25, 2014 3:07:54 PM UTC+1, Jamie Mitchell wrote: > Hello all, > > > > I am trying to perform a Kolmogorov-Smirnov test in Python but I'm having a > few difficulties. > > > > # My files are netCDF so I import them as follows: > >

len() of unsized object - ks test

2014-04-25 Thread Jamie Mitchell
peError: len() of unsized object Any ideas on why this isn't working would be great. Thanks, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Line of best fit

2014-03-31 Thread Jamie Mitchell
=netCDF4.Dataset('filename'.'r') hs2=swh2.variables['hs'] plt.plot(hs1,hs2,'.') Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: Memory error

2014-03-24 Thread Jamie Mitchell
On Monday, March 24, 2014 11:32:31 AM UTC, Jamie Mitchell wrote: > Hello all, > > > > I'm afraid I am new to all this so bear with me... > > > > I am looking to find the statistical significance between two large netCDF > data sets. > > > >

Memory error

2014-03-24 Thread Jamie Mitchell
also happens when I try to create numpy arrays from the data. Does anyone know how I can alleviate theses memory errors? Cheers, Jamie -- https://mail.python.org/mailman/listinfo/python-list

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-30 Thread Jamie Paul Griffin
they're powerful, efficient and made for the task of programming. Jamie -- Primary Key: 4096R/1D31DC38 2011-12-03 Key Fingerprint: A4B9 E875 A18C 6E11 F46D B788 BEE6 1251 1D31 DC38 -- http://mail.python.org/mailman/listinfo/python-list

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-27 Thread Jamie Paul Griffin
* mogul [2012-12-27 12:01:16 -0800]: > 'Aloha! > > I'm new to python, got 10-20 years perl and C experience, all gained on unix > alike machines hacking happily in vi, and later on in vim. > > Now it's python, and currently mainly on my kubuntu desktop. > > Do I really need a real IDE, as the

Re: Brython - Python in the browser

2012-12-20 Thread Jamie Paul Griffin
* Ian Kelly [2012-12-19 17:54:44 -0700]: > On Wed, Dec 19, 2012 at 5:07 PM, Terry Reedy wrote: > > That says that my browser, Firefox 17, does not support HTML5. Golly gee. I > > don't think any browser support5 all of that moving target, and Gecko > > apparently supports about as large a subset

Re: Obnoxious postings from Google Groups

2012-11-04 Thread Jamie Paul Griffin
/ ru...@yahoo.com wrote on Fri 2.Nov'12 at 11:39:10 -0700 / > (I also hope I haven't just been suckered by a troll > attempt, windows/unix is better then unix/windows being > an age-old means of trolling.) No, i'm not a "troll". I was just adding my opinion to the thread, I assumed that was al

Re: datetime issue

2012-11-02 Thread Jamie Paul Griffin
/ ru...@yahoo.com wrote on Thu 1.Nov'12 at 15:00:48 -0700 / > > * In Search dialog clicked on the Search in folder dropdown after > an earlier search and TB crashed (disappeared along with the > new message I was editing.) [3.0.1] > > * Search for japanese text in body no longer works (

Re: Obnoxious postings from Google Groups

2012-11-02 Thread Jamie Paul Griffin
/ ru...@yahoo.com wrote on Thu 1.Nov'12 at 15:08:26 -0700 / > On 11/01/2012 03:55 AM, Jamie Paul Griffin wrote: > > Anybody serious about programming should be using a form of > > UNIX/Linux if you ask me. It's inconceivable that these systems > > should be

Re: Obnoxious postings from Google Groups

2012-11-01 Thread Jamie Paul Griffin
/ Steven D'Aprano wrote on Wed 31.Oct'12 at 22:33:16 + / > On Wed, 31 Oct 2012 12:32:57 -0700, rurpy wrote: > I don't killfile merely for posting from Gmail or Google Groups, but > regarding your second point, it has seemed to me for some years now that > Gmail is the new Hotmail, which wa

Re: Obnoxious postings from Google Groups

2012-11-01 Thread Jamie Paul Griffin
/ Robert Miles wrote on Wed 31.Oct'12 at 0:39:02 -0500 / > For those of you running Linux: You may want to look into whether > NoCeM is compatible with your newsreader and your version of Linux. > It checks newsgroups news.lists.filters and alt.nocem.misc for lists > of spam posts, and will auto

Re: Functional way to compare things inside a list

2012-09-22 Thread Jamie Paul Griffin
[ Ian Kelly wrote on Sat 22.Sep'12 at 0:22:43 -0600 ] > On Fri, Sep 21, 2012 at 7:25 PM, Steven D'Aprano > wrote: > > On Fri, 21 Sep 2012 14:49:55 -0600, Ian Kelly wrote: > > > >> On Fri, Sep 21, 2012 at 1:54 PM, 8 Dihedral > >> wrote: > >>> I don't think functional aspects are only marked

Re: Obnoxious postings from Google Groups (was: datetime issue)

2012-09-17 Thread Jamie Paul Griffin
[ Joel Goldstick wrote on Sun 16.Sep'12 at 11:57:56 -0400 ] > email client to python-list@python.org If using Windows I would certainly use Thunderbird or even slrn news reader - I believe there is a version for Windows. Or you could install Interix subsystem which provides UNIX tools for Wind

Re: Which Version of Python?

2012-09-12 Thread Jamie Paul Griffin
e "it is felt that the theory still needs to be expounded upon" Python 2.x will be used in lieu of Python 3. I personally, as a beginner, have found this approach helpful. Although, when this book was published Python 3.1 was the latest release, so of course since then said libraries most probably have been updated. So, as a fellow beginner i'd go for version 3.x. Jamie. -- http://mail.python.org/mailman/listinfo/python-list

Re: Books?

2012-08-23 Thread Jamie Paul Griffin
[ Virgil Stokes wrote on Wed 22.Aug'12 at 16:34:40 +0200 ] > On 22-Aug-2012 16:04, Steven D'Aprano wrote: > > On Tue, 21 Aug 2012 18:36:50 -0700, Anonymous Group wrote: > > > >> What books do you recomend for learning python? Preferably free and/or > >> online. > > Completely by coincidence, I hav

Re: Books?

2012-08-22 Thread Jamie Paul Griffin
[ Mark Lawrence wrote on Wed 22.Aug'12 at 8:43:58 +0100 ] > On 22/08/2012 02:36, Anonymous Group wrote: > > What books do you recomend for learning python? Preferably free and/or > > online. > > > > Search for the Alan Gauld tutorial. I've never used it myself, but OTOH > I've never heard anyb

Re: [ANNC] pybotwar-0.8

2012-08-21 Thread Jamie Paul Griffin
[ Ramchandra Apte wrote on Sat 18.Aug'12 at 19:21:03 +0530 ] > I'll be using Google Groups (hopefully it won't top-post by default) to > post stuff. You are encouraged to get used to it i'm afraid as any mailing list you use, its users will prefer you to use the correct formatting of responses.

Re: Remote uptime with win32pdh

2009-09-29 Thread Jamie
On Sep 29, 1:19 pm, Jamie wrote: > On Sep 29, 1:08 pm, Jamie wrote: > > > > > > > I'm new to python and I'm trying to write a script which takes the > > computer name from the variable 'name' and gets the uptime. > > > What I have s

Re: Remote uptime with win32pdh

2009-09-29 Thread Jamie
On Sep 29, 1:08 pm, Jamie wrote: > I'm new to python and I'm trying to write a script which takes the > computer name from the variable 'name' and gets the uptime. > > What I have so far: >     query = win32pdh.OpenQuery() >     counter = win32pdh.AddC

Remote uptime with win32pdh

2009-09-29 Thread Jamie
I'm new to python and I'm trying to write a script which takes the computer name from the variable 'name' and gets the uptime. What I have so far: query = win32pdh.OpenQuery() counter = win32pdh.AddCounter(query, r'\System\System Up Time') win32pdh.CollectQueryData(query) var1, val

Re: detmining name during an assignment

2009-09-18 Thread Jamie Riotto
On Fri, Sep 18, 2009 at 1:10 PM, Gabriel Genellina wrote: > En Fri, 18 Sep 2009 14:38:08 -0300, Christian Heimes > escribió: >> >> Jamie Riotto schrieb: > >>> I have an app that uses Python scripting. When a user creates a new >>> object: >>>

detmining name during an assignment

2009-09-18 Thread Jamie Riotto
interpreter line" causing the init code to execute? Thanks very much in advance, Jamie Riotto -- http://mail.python.org/mailman/listinfo/python-list

Problem with winreg - The object is not a PyHKEY object

2009-08-21 Thread Jamie
My goal is to remotely remove the registry keys for McAfee. I don't know how winreg handles an exception if a key doesn't exist, but I setup my script to skip the exception. But it doesn't seem to work right.. I think the script should be self explanitory, please help! Please forgive me, but I'm a

Re: wxPython BoxSizer

2008-11-19 Thread Jamie McQuay
Spacer() box.Add(myText, 0, wx.ALIGN_CENTER) box.AddStretchSpacer() jamie -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython BoxSizer

2008-11-19 Thread Jamie McQuay
r but i want to get the sizers to work correctly for this. > > FYI: There's a great wxPython mailing list too. Check it out > here:http://wxpython.org/maillist.php thanks, i will take a look. Jamie -- http://mail.python.org/mailman/listinfo/python-list

wxPython BoxSizer

2008-11-19 Thread Jamie McQuay
ither vertically or horizontally, but not both (i.e. the center). I've tried myText.CenterOnParent but i need to handle to Size event to move the text when the panel is resized and i don't want to have to do this. thanks, Jamie -- http://mail.python.org/mailman/listinfo/python-list

Re: I am giving up perl because of assholes on clpm -- switching to Python

2007-08-02 Thread Jamie
e they do.. byte. :-) Seriously, it is one of the problems facing perl (and linux) people ARE turned away by the attitude. It is rather embarassing/unflattering when someone is critical of your work. I see a lot of ideas about things should be "made easier" but I think thats the wrong

PIL problems

2007-02-15 Thread Jamie Bohr
;1 | less # PIL/__init__.pyc matches PIL/__init__.py import PIL # precompiled from PIL/__init__.pyc # trying PIL/_imaging.so dlopen("PIL/_imaging.so", 2); import PIL._imaging # dynamically loaded from PIL/_imaging.so # clear __builtin__._ # clear sys.path -- Jamie Bohr -- http://mail.python.org/mailman/listinfo/python-list

How would I create an class with a "Person.Address.City" property?

2006-12-18 Thread Jamie J. Begin
I'm very new to the world of Python and am trying to wrap my head around it's OOP model. Much of my OOP experience comes from VB.Net, which is very different. Let's say I wanted to create an object that simply outputted something like this: >>> import employees >>> person = employee("joe") # Get

Re: Pythot doc problem: lambda keyword...

2005-10-13 Thread Jamie Border
PB> BTW, you post to the wrong group. No, I think c.l.l is exactly the place to discuss how to play many trumpets through one set of teeth. In fact, I have a box of trumpets lying around somewhere... Open wide, Xah! Jamie -- http://mail.python.org/mailman/listinfo/python-list

Injecting a C side object into the local dict

2005-02-11 Thread Jamie R. Parent
ment. This however does not seem to work. It would seem that when the scripts are ran the local dictionary with the added item is wiped clean and a new local dictionary is instead used. Any direction or help would be appreciated. Cheers, Jamie. -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.makefile & AF_UNIX

2004-12-10 Thread Jamie Saker
es sense. Thanks Michael. I'd expect socket.makefile is probably less encountered than most aspects of socket (according to google, it sure seemed so!). Jamie -- http://mail.python.org/mailman/listinfo/python-list

socket.makefile & AF_UNIX

2004-12-10 Thread Jamie Saker
root root 0 Dec 10 01:14 /dev/log= And when I use /dev/log instead (which exists), it connects to the file object and runs (though snort does not want to dump to /dev/log and the limitations of the alert_unixsock output method limit it to /var/log/snort/snort_alert only). Any thoughts from the socket savvy would be *greatly* appreciated! Jamie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 14, Issue 377

2004-11-29 Thread Jamie Saker
ser of SLS, Slackware, Redhat, Debian and now Gentoo. You'll hear plenty of distro war stuff and certainly every tool has its pros/cons. For python, if you haven't given Gentoo a look, check it out... Jamie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 14, Issue 377

2004-11-29 Thread Jamie Saker
.gentoo.org for more info, or on IRC at #gentoo Jamie Saker "Gentoo bumper sticker: I'd rather be compiling!" -- http://mail.python.org/mailman/listinfo/python-list