Re: [Tutor] Basic Question about Visualization for enduser

2019-06-26 Thread Oscar Benjamin
On Tue, 25 Jun 2019 at 17:08, Sinardy Xing wrote: > > My question is, how currently all of this great technology glue together > and as a final product for the enduser. Because I cant imagine that we > install Anaconda Jupyter Notebook at frontend for the enduser to use it, > and give end user bun

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Alan Gauld via Tutor
On 25/06/2019 15:52, Sinardy Xing wrote: > My question is, how currently all of this great technology glue together > and as a final product for the enduser. Because I cant imagine that we > install Anaconda Jupyter Notebook at frontend for the enduser to use it, > and give end user bunch of *.py

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Sinardy Xing
Hi Mats, Thanks for the reply. I am so sorry the question was not clear. I was rushing home when composing the question. I have learned python and a little about the pandas lib also the visualization lib such as maplotlib, I also learn on how to generate the output (thanks again for that example

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Alan Gauld via Tutor
On 25/06/2019 13:39, Sinardy Xing wrote: > All of the example that I learned from internet currently are using the > Anaconda Jupyter Notebook. > I know there are API where we can output the result of the graph to png, > will that be possible all these done automatically and dynamically via an > a

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Mats Wichmann
On 6/25/19 6:39 AM, Sinardy Xing wrote: > Hi, > > I am a newbie with python and the data visualization. > I have completed pandas.DataFrame stuff and also the matplotlib. > > All of the example that I learned from internet currently are using the > Anaconda Jupyter Notebook. > I know there are AP

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread Danny Yoo
> > So main.py contains: > > def get_field(value, start_bit, end_bit): > > > and I see: > > >>> import main > >>> help(get_field) > Traceback (most recent call last): >File "", line 1, in > NameError: name 'get_field' is not defined > > > help(main) works ok but is rather verbose. Try:

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread David Aldrich
If I have a script called main.py and document a function in it: def get_value(x): """ Some text ... :param x: Some value :returns: Something useful """ What is the most basic way of showing those docstrings at the

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread Steven D'Aprano
On Thu, Jul 30, 2015 at 04:28:33PM +, David Aldrich wrote: > So main.py contains: > > def get_field(value, start_bit, end_bit): > > > and I see: > > >>> import main > >>> help(get_field) > Traceback (most recent call last): >File "", line 1, in > NameError: name 'get_field' is n

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread Steven D'Aprano
On Thu, Jul 30, 2015 at 08:24:27AM +, David Aldrich wrote: > I understand that 'help' works with modules that I have imported. But > if I've just written a script called main.py (which contains > get_value()) I don't think I can 'import' that. So how would I see the > docstrings in main.py?

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread Joel Goldstick
On Thu, Jul 30, 2015 at 4:24 AM, David Aldrich wrote: >>> If I have a script called main.py and document a function in it: >>> >>> def get_value(x): >>> """ >>> Some text ... >>> :param x: Some value >>> :returns: Something useful >>> """ >>> >>> What is the most basic

Re: [Tutor] Basic question about docstrings

2015-07-30 Thread David Aldrich
>> If I have a script called main.py and document a function in it: >> >> def get_value(x): >> """ >> Some text ... >> :param x: Some value >> :returns: Something useful >> """ >> >> What is the most basic way of showing those docstrings at the Python >> prompt? > > Tr

Re: [Tutor] Basic question about docstrings

2015-07-29 Thread Danny Yoo
On Jul 29, 2015 12:45 PM, "David Aldrich" wrote: > > Hi > > If I have a script called main.py and document a function in it: > > def get_value(x): > """ > Some text ... > :param x: Some value > :returns: Something useful > """ > > What is the most basic way of showing

Re: [Tutor] Basic question about docstrings

2015-07-29 Thread Emile van Sebille
On 7/29/2015 8:45 AM, David Aldrich wrote: Hi If I have a script called main.py and document a function in it: def get_value(x): """ Some text ... :param x: Some value :returns: Something useful """ What is the most basic way of showing those docstrings at the

Re: [Tutor] basic question

2013-04-05 Thread Woody 544
On 4/5/13, Woody 544 wrote: > Dear Najam > > The tax and license amounts should not need to be entered, as I would > think the only variable is the base price, with tax and license > calculated as their rate times the base price. For example, if the > sales tax rate for the area is 6% for example:

Re: [Tutor] basic question

2013-04-05 Thread Dave Angel
On 04/05/2013 08:05 AM, Najam Us Saqib wrote: Hi, My name is Najam, I am very new to Python Programming. Welcome. Would you please help me with the following question? The question/problem is, Write a Car salesman program where the user enters the base price of a car. The program should

Re: [Tutor] Basic question on spaces

2011-07-20 Thread Alan Gauld
Alexander Quest wrote: As you can see, this is quite rudimentary; I have not discovered any special function that eliminates spaces yet, if such a function exits. There was a thread on this a week or so back. There you will find several suggestions however, in Python 3 the simplest is probabl

Re: [Tutor] Basic question on spaces

2011-07-19 Thread Steve Willoughby
On 19-Jul-11 20:39, Alexander Quest wrote: Hello; I'm a new student of Python using "Python Programming for Absolute Beginners" 3rd edition by Michael Dawson as my guide. This is a basic question regarding spaces. I'm not sure how to make it so spaces do not show up between variables and basic st

Re: [Tutor] basic question ...

2006-10-30 Thread Kent Johnson
Danny Yoo wrote: > If you want to get an overview of the extent of Python's library, try the > table of contents: > > http://www.python.org/doc/lib/ > > There's a heck of a lot of stuff there, so asking someone to memorize it > is ridiculous. Still, it can help to scan through it sometime

Re: [Tutor] basic question ...

2006-10-27 Thread Ravi Kondamuru
Thanks a lot for all that info. I am going to start with the doc/lib index for an overview and dir looks like a good runtime help command.Ravi.On 10/27/06, Danny Yoo <[EMAIL PROTECTED]> wrote: On Fri, 27 Oct 2006, Ravi Kondamuru wrote:> How does one figure all the builtin libraries/ classes that p

Re: [Tutor] basic question ...

2006-10-27 Thread Danny Yoo
On Fri, 27 Oct 2006, Ravi Kondamuru wrote: > How does one figure all the builtin libraries/ classes that python > supports? > > For example if I want to sort a list of names, I would normally think of > implementing the sorting routine in C. I am just beginning to learn > python. It looks lik

Re: [Tutor] basic question ...

2006-10-27 Thread Glenn T Norton
Ravi Kondamuru wrote: > Hi, > > How does one figure all the builtin libraries/ classes that python > supports? > > For example if I want to sort a list of names, I would normally think > of implementing the sorting routine in C. I am just beginning to learn > python. It looks like there is a ri

Re: [Tutor] basic question

2006-03-23 Thread Alan Gauld
Hi Michael, > I loaded IDLE (python GUI) on my portable installed with Windows XPpro > but when I go in Python shell to file, and New wondow , > I do not find run or execute or something like that. First do you actually get a new blank window popping up? If so, you should find a Run menu item on

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-03 Thread Bernard Lebel
Alan Gauld wrote: Which tutor are you using? If its the standard Python tutor then its not really for beginners to OOP, Yes, I was talking about the one that comes with Python. Now I understand why I couldn't figure much of it! you might be better looking at some of the more basic tutors such as

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-03 Thread Alan Gauld
> I'm already confused! Seriously, I never done oop before, so even the > Python tutorial examples are extremely confusing to me atm. Which tutor are you using? If its the standard Python tutor then its not really for beginners to OOP, you might be better looking at some of the more basic tutors s

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-03 Thread Bernard Lebel
Alan Gauld wrote: You have 3 methods, functions and methods are similar but different! If you think of them asthe same thing you will probably get confused by OOP later on! [Bernard] I'm already confused! Seriously, I never done oop before, so even the Python tutorial examples are extremely confus

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-03 Thread Alan Gauld
> Okay here comes the next question. > > In that class, I have 3 functions. Actually, one of them calls the two > others. You have 3 methods, functions and methods are similar but different! If you think of them asthe same thing you will probably get confused by OOP later on! > However when I cal

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-02 Thread Rich Krauter
Bernard Lebel wrote: Okay here comes the next question. In that class, I have 3 functions. Actually, one of them calls the two others. However when I call these functions (wich are placed before the caller in the file), I get an error saying that the global name x (the function name) is not def

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-02 Thread Bernard Lebel
Okay here comes the next question. In that class, I have 3 functions. Actually, one of them calls the two others. However when I call these functions (wich are placed before the caller in the file), I get an error saying that the global name x (the function name) is not defined. What am I doin

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-02 Thread Bernard Lebel
All righty, thanks a lot! Bernard tanja pislar wrote: hi Bernard, you have to specify the module as well: let's say your module is called rtModule.py, then in your case you'd do: import rtModule testClass = rtModule.rt() testClass.walk() or: from rtModule import rt testClass = rt() testClass.walk()

Re: [Tutor] Basic question -> How to use a class from a file?

2005-01-02 Thread tanja pislar
hi Bernard, you have to specify the module as well: let's say your module is called rtModule.py, then in your case you'd do: import rtModule testClass = rtModule.rt() testClass.walk() or: from rtModule import rt testClass = rt() testClass.walk() regards, tanja On Sun, 02 Jan 2005 17:43:07