Re: [Tutor] Raspberry pi 2 python help

2017-06-13 Thread Francois Dion
"These are not the scripts you are looking for" More seriously, you want to configure your shell. See the linux documentation project, beginner's guide to bash, chapter 3 in particular: http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html Until you login, your shell doesn't even exists, so

Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-03 Thread Francois Dion
PyCharm has support for cell based notebooks, interactive python console etc. You can set up the layout so it mirrors Rstudio. Spyder should have installed correctly. How did you install? Having said that, you should also look into JupyterLab: https://github.com/jupyterlab/jupyterlab, YHat's

Re: [Tutor] airflow dag

2017-05-28 Thread Francois Dion
My mailbox if full of similar stories: companies dumping airflow on their ETL (or similar) group. Those who knew Python succeeded, those who didn't failed, and some even moved to other companies because they couldn't cope with all this complexity dumped on them all at once. Moral of the story, it

Re: [Tutor] Why is the name "self" optional instead of mandatory?

2016-01-21 Thread Francois Dion
On Thu, Jan 21, 2016 at 6:49 AM, Steven D'Aprano wrote: > On Wed, Jan 20, 2016 at 09:42:29PM -0600, boB Stepp wrote: > > > So I really only have one question: Why not make Python's > > *traditional* name, "self", mandatory? Why give the programmer this > > kind of choice?

Re: [Tutor] python plotting

2016-01-19 Thread Francois Dion
I'm guessing you loaded from pandas import *... It is better to import pandas as pd, then use pd.read_csv. I also tend to name my data frames df or a variation and time series as ts. Speaking of series, If your data is not a series with a datetime type, then it will be plotted as a categorical,

Re: [Tutor] To FORMAT or not to

2016-01-03 Thread Francois Dion
The answer is neither. The second shows the intent in part but doesn't quite get it right. The intent is to have a string template and insert values in that template: print("You've visited {} & {}.".format(island, new) This is totally clear what is going to happen. I'm not relying on the

Re: [Tutor] To FORMAT or not to

2016-01-03 Thread Francois Dion
And as Chris points out, if there is any possibility that the words will be in a different order in a different language, use {0}, {1} instead of {}. Francois On Sun, Jan 3, 2016 at 8:04 AM, Chris Warrick wrote: > On 3 January 2016 at 13:27, yehudak .

Re: [Tutor] PDF Scrapping

2015-11-25 Thread Francois Dion
This is well beyond the scope of Tutor, but let me mention the following: The code to pdftables disappeared from github some time back. What is on sourceforge is old, same with pypi. I wouldn't create a project using pdftables based on that... As far as what you are trying to do, it looks like

Re: [Tutor] Access HBase

2015-07-14 Thread Francois Dion
On Sat, Jul 11, 2015 at 9:01 AM, Michelle Meiduo Wu wum...@hotmail.com wrote: Hi there, I'm just starting to use Python. I'd like to ask which Library is good for Python to access HBASE? I think the Python for Data Science group would be a good place to ask:

Re: [Tutor] Python serial interface

2015-04-01 Thread Francois Dion
Pyserial is python 2.x and 3.x compatible. It is very widely used and is stable. http://pyserial.sourceforge.net/ What is your application? Sometimes you can use a higher level module that makes use of pyserial. Francois -- raspberry-python.blogspot.com - www.pyptug.org - www.3DFutureTech.info

Re: [Tutor] Python serial interface

2015-04-01 Thread Francois Dion
On Wed, Apr 1, 2015 at 11:01 AM, Colin Ross colin.ross@gmail.com wrote: Hi Francois, Thank you for the fast reply! I am looking to control a brushless servo motor ( http://www.aerotech.com/product-catalog/motors/rotary-motors/bms-series.aspx) that drives a rotary stage. These motors

Re: [Tutor] Suggestions Please

2014-10-07 Thread Francois Dion
El Oct 6, 2014, a las 6:42 PM, Phillip Pugh pug...@me.com escribió: I am trying to decide if Python is the right toolset for me. I do a lot of data analytics. Over the years I have used a lot of SQL and VBA, but the data sources are getting bigger. I am thinking Python may be what I need to

Re: [Tutor] most useful ide

2014-02-03 Thread Francois Dion
On Sun, Feb 2, 2014 at 3:25 AM, Ian D dux...@hotmail.com wrote: Are there any recommendations for python ide's Since you mentionned windows and lightweight and autocompletion, i'd take a look at ninja-ide (http://ninja-ide.org/). It is relatively lightweight. In my case, I use pycharm for

Re: [Tutor] Python

2013-08-15 Thread Francois Dion
On Aug 15, 2013 8:04 PM, Jake Wohldmann jake.wohldm...@gmail.com wrote: I was also wondering if I could use python on my android phone. Http://qpython.com And then, there is the browser based approach. For example, see http://raspberry-python.blogspot.com That's using Brython and the

Re: [Tutor] script in Raspberry pi python

2013-07-29 Thread Francois Dion
Dont edit unix files on windows, else you might end up with that problem. It is looking for python^M and not python. Edit with vi and delete the control-M character. Also, If you need to edit a file with a GUI but have the raspberry pi headless check out:

Re: [Tutor] How to write on Planet Python

2013-07-17 Thread Francois Dion
On Jul 17, 2013, at 7:12 AM, Karan Goel karanma...@gmail.com wrote: How do I publish a post on Planet Python (http://planet.python.org/). I cannot find any information for contributors. At the bottom of the list of blogs is this: To request addition or removal: e-mail planet at python.org

Re: [Tutor] sound implementation problems

2013-06-13 Thread Francois Dion
I'd start with something simple first, to make sure you have sound output etc. Run python interactively in the directory you have your wav file. At a minimum, you need to import pygame, init the mixer (args are not really needed, but I'll use what you had), set up the sound file and finally, play

Re: [Tutor] producing PDF files

2013-06-11 Thread Francois Dion
http://www.xhtml2pdf.com/ Started life as pisa. Very easy to work with. Francois -- www.pyptug.org - raspberry-python.blogspot.com - @f_dion On Tue, Jun 11, 2013 at 5:53 AM, Khalid Al-Ghamdi emailkg...@gmail.comwrote: Hi, Do you know of a python module for converting text files to PDF

Re: [Tutor] Future Python

2013-06-05 Thread Francois Dion
You can combine django (or any other framework) with brython, just like you would with javascript. For example, just this past week, this example was posted to the brython list: https://github.com/mrjmad/django_socketio_test Francois -- www.pyptug.org - raspberry-python.blogspot.com -

Re: [Tutor] Python Conference/Tutorial in the USA

2013-06-04 Thread Francois Dion
Where are you situated? You should join a local Python user group. Don mentionned tripython, which is in North Carolina. There is also PYPTUG [1] and PyCarolinas [2] 2013 should be announced soon. A little to the northwest, PyOhio [3] just concluded RFPs and is scheduled for the end of July. There

Re: [Tutor] automate add-to-cart with python

2013-01-29 Thread Francois Dion
On Mon, Jan 28, 2013 at 6:32 PM, Alan Gauld alan.ga...@btinternet.com wrote: On 28/01/13 22:51, Benjamin Fishbein wrote: In general, despite scouring the Internet, I haven't been able to figure out how to get Python to cause javascripts I find in the html to be run. That's because Javascript

Re: [Tutor] Books for Learning Python

2013-01-11 Thread Francois Dion
On Fri, Jan 11, 2013 at 3:14 PM, Gary L. Gray g...@psu.edu wrote: On Jan 11, 2013, at 1:39 PM, Alan Gauld alan.ga...@btinternet.com wrote: (1) Will Python allow me to create applications that provide a simple GUI interface to something like an integrator for ODEs? Does it have graphics

Re: [Tutor] Trouble importing Paramiko

2012-12-27 Thread Francois Dion
On Thu, Dec 27, 2012 at 8:48 AM, Ufuk Eskici ufukesk...@gmail.com wrote: I got this output with lots of errors: File build\bdist.win32\egg\paramiko\auth_handler.py, line 311 except SSHException, e: ^ SyntaxError: invalid syntax Use Python 2.x, Python 3 is in the

Re: [Tutor] Get/Set/Attribute Accessors in Python?

2012-12-05 Thread Francois Dion
On Wed, Dec 5, 2012 at 10:38 AM, Malcolm Newsome malcolm.news...@gmail.com wrote: Hey Tutors, Python is/was my first language. Yet, I've recently begun learning C# for my new job. My condolences. One thing I've come across in C# (and, quite frankly, am having a difficult time grasping) is

Re: [Tutor] I'm trying to wrap my head around defs

2012-12-04 Thread Francois Dion
On Tue, Dec 4, 2012 at 4:51 PM, frank ernest do...@mail.com wrote: Opensuse 12.2 python3.2 I'm having trouble understanding them. Python is my first language... excluding English. I've already read ALL OF THE PYTHON Language Referance and I still don't get it. What do they do? Let's start

Re: [Tutor] Listen for input while performing other tasks

2012-11-25 Thread Francois Dion
On Sun, Nov 25, 2012 at 7:32 AM, Sean Carolan scaro...@gmail.com wrote: This is how I'm checking for a button press: This should really be done with interrupts, but unfortunately there is no support in the RPi.GPIO module for that, even if you have a patched kernel. I've done a workshop earlier

Re: [Tutor] Civil discourse from a newbie's perspective

2012-10-02 Thread Francois Dion
is a word spoken at the right time for it Thank you kindly, Francois -- Francois Dion solarisdesktop.blogspot.com - raspberry-python.blogspot.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org