From gkchamielec at gmail.com Sun Nov 3 23:00:33 2013 From: gkchamielec at gmail.com (G.K.CH.) Date: Sun, 3 Nov 2013 22:00:33 +0000 Subject: [Python Edinburgh] Spyder help Message-ID: Hello Pythons, I want to ask for some help in setting up Spyder and Python(x,y) and all the rest for my engineering work. I am building a program to analyse induction motors. I have written a raw code, I will work on some graphics (torque to speed curve etc) and I want to build a GUI. I did some research and spend a couple of days on installing and uninstalling plenty modules I had no idea what they were for. Running some examples. Generally messing about. I had a little success with running my code in IDLE. It pops up results I wanted. Yesterday I found out that the best way would be to install a nice package designed for engineers called Python(x,y), which I did. Then I loaded Spyder and I run into some problems: Spyder shows: NameError: name 'runfile' is not defined. I could just ignore Spyder and continue with IDLE but... it bytes me that such a nice interface as Spyder is not working as I would like. Also: I don't quite understand the difference between IPython and standard Python, I don't know what "console" is or if it matters if something is in kernel or not and stuff like that. Just basic general know-how. I study at Napier and can come anywhere with my laptop with my stuff on it for a little inspection. I am plumber and electrician by trade so I can fix a leak in return. Thanks, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.smith at practicalpoetry.co.uk Mon Nov 4 11:45:00 2013 From: mark.smith at practicalpoetry.co.uk (Mark Smith) Date: Mon, 4 Nov 2013 10:45:00 +0000 Subject: [Python Edinburgh] Spyder help In-Reply-To: References: Message-ID: Hi Kris, I'm not sure I can help with much of your email - I've never used Spyder, and I haven't used Python(x,y) for about 3 years. I can at least help with your console/ipython question, though: Python can be run in one of two ways - the usual way of running it is to pass it the path to a python program, which it will then run, and quit once the program has finished. The other way, when you just type 'python' and hit return, starts up the Python console or REPL. In this mode, you can type individual lines of python into your command-line which it will then Read, Evaluate and Print the result of, before Looping (hence REPL). It's useful for testing out the odd line of python code, especially when learning. iPython is an improved version of the python console, supporting tab-completion and a bunch of other improvements. (best to check out their own documentation: http://ipython.org/ipython-doc/stable/overview.html). There used to be an even better equivalent called bPython but it appears iPython has had a *lot* of work done on it recently, especially if you're a scientific/engineering programmer, so that may no longer be the case. People seem to be getting very excited about iPython Notebook ( http://ipython.org/ipython-doc/stable/interactive/notebook.html#htmlnotebook ). If you have lots of questions, I really recommend coming along to one of the pub meetups - the next one is on Tuesday 26th Nov (which I admit is a little way off). We're a very friendly bunch, and always happy to help people new to the language. --Mark On 3 November 2013 22:00, G.K.CH. wrote: > Hello Pythons, > > I want to ask for some help in setting up Spyder and Python(x,y) and all > the rest for my engineering work. > > I am building a program to analyse induction motors. I have written a raw > code, I will work on some graphics (torque to speed curve etc) and I want > to build a GUI. > > I did some research and spend a couple of days on installing and > uninstalling plenty modules I had no idea what they were for. Running some > examples. Generally messing about. > > I had a little success with running my code in IDLE. It pops up results I > wanted. > > Yesterday I found out that the best way would be to install a nice package > designed for engineers called Python(x,y), which I did. > > Then I loaded Spyder and I run into some problems: > Spyder shows: NameError: name 'runfile' is not defined. > I could just ignore Spyder and continue with IDLE but... it bytes me that > such a nice interface as Spyder is not working as I would like. > Also: I don't quite understand the difference between IPython and > standard Python, I don't know what "console" is or if it matters if > something is in kernel or not and stuff like that. Just basic general > know-how. > > I study at Napier and can come anywhere with my laptop with my stuff on it > for a little inspection. > > I am plumber and electrician by trade so I can fix a leak in return. > > Thanks, > Kris > > > > > > > _______________________________________________ > Edinburgh mailing list > Edinburgh at python.org > https://mail.python.org/mailman/listinfo/edinburgh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.smith at practicalpoetry.co.uk Mon Nov 25 16:47:34 2013 From: mark.smith at practicalpoetry.co.uk (Mark Smith) Date: Mon, 25 Nov 2013 15:47:34 +0000 Subject: [Python Edinburgh] Pub Meetup Tomorrow! Message-ID: Hi All, This is a reminder that it's the monthly Python Edinburgh pub meetup tomorrow (Tuesday), at Berts Bar[1] from 6:30pm. There will be a printout of the Python logo on the end of the table to help any newcomers to identify us. Hope to see you there! --Mark 1: http://www.bertsbar.co.uk/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Glenn.Bald at forestry.gsi.gov.uk Mon Nov 25 16:49:47 2013 From: Glenn.Bald at forestry.gsi.gov.uk (Bald, Glenn) Date: Mon, 25 Nov 2013 15:49:47 -0000 Subject: [Python Edinburgh] Pub Meetup Tomorrow! References: Message-ID: Hi Mark, It could be usefull to provide the date a week or more in advance. I am possibley not alone in not being able to make events with 3 hours notice. Cheers Glenn ________________________________ From: Edinburgh [mailto:edinburgh-bounces+glenn.bald=forestry.gsi.gov.uk at python.org] On Behalf Of Mark Smith Sent: 25 November 2013 15:48 To: The list for Pythonistas in Edinburgh. Subject: [Python Edinburgh] Pub Meetup Tomorrow! Hi All, This is a reminder that it's the monthly Python Edinburgh pub meetup tomorrow (Tuesday), at Berts Bar[1] from 6:30pm. There will be a printout of the Python logo on the end of the table to help any newcomers to identify us. Hope to see you there! --Mark 1: http://www.bertsbar.co.uk/ This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Vodafone in partnership with Symantec. (CCTM Certificate Number 2009/09/0052.) In case of problems, please call your organisation's IT Helpdesk. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. +++++ The Forestry Commission's computer systems may be monitored and communications carried out on them recorded, to secure the effective operation of the system and for other lawful purposes. +++++ The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs. On leaving the GSi this email was certified virus-free -------------- next part -------------- An HTML attachment was scrubbed... URL: From litt.fire.sa at gmail.com Mon Nov 25 16:58:28 2013 From: litt.fire.sa at gmail.com (Andre Engelbrecht) Date: Mon, 25 Nov 2013 15:58:28 +0000 Subject: [Python Edinburgh] Pub Meetup Tomorrow! In-Reply-To: References: Message-ID: Glen, the meetup is tomorrow :) not today Andre Engelbrecht Web Developer/Designer http://andre.engelbrechtonline.net http://www.tehnode.co.uk Too brief? Here's why! http://emailcharter.org On Mon, Nov 25, 2013 at 3:49 PM, Bald, Glenn wrote: > Hi Mark, > > It could be usefull to provide the date a week or more in advance. I am > possibley not alone in not being able to make events with 3 hours notice. > > Cheers > Glenn > > ------------------------------ > *From:* Edinburgh [mailto:edinburgh-bounces+glenn.bald= > forestry.gsi.gov.uk at python.org] *On Behalf Of *Mark Smith > *Sent:* 25 November 2013 15:48 > *To:* The list for Pythonistas in Edinburgh. > *Subject:* [Python Edinburgh] Pub Meetup Tomorrow! > > Hi All, > > This is a reminder that it's the monthly Python Edinburgh pub meetup > tomorrow (Tuesday), at Berts Bar[1] from 6:30pm. > > There will be a printout of the Python logo on the end of the table to > help any newcomers to identify us. > > Hope to see you there! > > --Mark > > 1: http://www.bertsbar.co.uk/ > > This email was received from the INTERNET and scanned by the Government > Secure Intranet anti-virus service supplied by Vodafone in partnership with > Symantec. (CCTM Certificate Number 2009/09/0052.) In case of problems, > please call your organisation's IT Helpdesk. > Communications via the GSi may be automatically logged, monitored and/or > recorded for legal purposes. > > +++++ The Forestry Commission's computer systems may be monitored and > communications carried out on them recorded, to secure the effective > operation of the system and for other lawful purposes. +++++ > > The original of this email was scanned for viruses by the Government > Secure Intranet (GSi) virus scanning service supplied exclusively by Cable > & Wireless in partnership with MessageLabs. > > On leaving the GSi this email was certified virus-free > > _______________________________________________ > Edinburgh mailing list > Edinburgh at python.org > https://mail.python.org/mailman/listinfo/edinburgh > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Glenn.Bald at forestry.gsi.gov.uk Mon Nov 25 17:42:00 2013 From: Glenn.Bald at forestry.gsi.gov.uk (Bald, Glenn) Date: Mon, 25 Nov 2013 16:42:00 -0000 Subject: [Python Edinburgh] Pub Meetup Tomorrow! References: Message-ID: Good point Andre, still can often do with less than weeks notice. Enjoy your beer! ________________________________ From: Edinburgh [mailto:edinburgh-bounces+glenn.bald=forestry.gsi.gov.uk at python.org] On Behalf Of Andre Engelbrecht Sent: 25 November 2013 15:58 To: Python Edinburgh Subject: Re: [Python Edinburgh] Pub Meetup Tomorrow! Glen, the meetup is tomorrow :) not today Andre Engelbrecht Web Developer/Designer http://andre.engelbrechtonline.net http://www.tehnode.co.uk Too brief? Here's why! http://emailcharter.org On Mon, Nov 25, 2013 at 3:49 PM, Bald, Glenn wrote: Hi Mark, It could be usefull to provide the date a week or more in advance. I am possibley not alone in not being able to make events with 3 hours notice. Cheers Glenn ________________________________ From: Edinburgh [mailto:edinburgh-bounces+glenn.bald =forestry.gsi.gov.uk at python.org] On Behalf Of Mark Smith Sent: 25 November 2013 15:48 To: The list for Pythonistas in Edinburgh. Subject: [Python Edinburgh] Pub Meetup Tomorrow! Hi All, This is a reminder that it's the monthly Python Edinburgh pub meetup tomorrow (Tuesday), at Berts Bar[1] from 6:30pm. There will be a printout of the Python logo on the end of the table to help any newcomers to identify us. Hope to see you there! --Mark 1: http://www.bertsbar.co.uk/ This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Vodafone in partnership with Symantec. (CCTM Certificate Number 2009/09/0052.) In case of problems, please call your organisation's IT Helpdesk. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. +++++ The Forestry Commission's computer systems may be monitored and communications carried out on them recorded, to secure the effective operation of the system and for other lawful purposes. +++++ The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs. On leaving the GSi this email was certified virus-free _______________________________________________ Edinburgh mailing list Edinburgh at python.org https://mail.python.org/mailman/listinfo/edinburgh This email was received from the INTERNET and scanned by the Government Secure Intranet anti-virus service supplied by Vodafone in partnership with Symantec. (CCTM Certificate Number 2009/09/0052.) In case of problems, please call your organisation's IT Helpdesk. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. +++++ The Forestry Commission's computer systems may be monitored and communications carried out on them recorded, to secure the effective operation of the system and for other lawful purposes. +++++ The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs. On leaving the GSi this email was certified virus-free -------------- next part -------------- An HTML attachment was scrubbed... URL: