Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: iPython tab completion of method variable
Post: RE: iPython tab completion of method variable

I found my answer.  as of python 3.5  import typing def foo(bar: int) --> int:     return bar**2 in ipython when you enter,  "foo()" it wll prompt with "bar: int returns int". this also works ...
sixteenornumber General Coding Help 1 3,194 Apr-04-2017, 02:14 PM
    Thread: iPython tab completion of method variable
Post: iPython tab completion of method variable

is there any way to get iPython to recognize the type of "each" in B.printBarList().  for example I want to use tab-complete in iPython so I type "each." but it doesn't know the type.   # A.py class...
sixteenornumber General Coding Help 1 3,194 Mar-31-2017, 12:09 PM
    Thread: Bokeh - dynamic update widget.Select values
Post: Bokeh - dynamic update widget.Select values

I'm using a Bokeh Select widget, from bokeh.models.widgets import Select which is essentially a dropdown on a web page. eg: http://v4-alpha.getbootstrap.com/components/dropdowns/.  I'm trying to figur...
sixteenornumber GUI 0 10,209 Dec-28-2016, 02:15 PM
    Thread: Are there Bokeh users on this forum?
Post: RE: Are there Bokeh users on this forum?

I'll post my question in a new thread to keep things clean. If you're interested in using Bokeh, it comes with Anaconda Python. thanks.
sixteenornumber GUI 4 5,631 Dec-28-2016, 01:51 PM
    Thread: Are there Bokeh users on this forum?
Post: Are there Bokeh users on this forum?

Does anyone on this forum use Bokeh?
sixteenornumber GUI 4 5,631 Dec-27-2016, 03:08 PM
    Thread: why is this variable not printing out properly?
Post: RE: why is this variable not printing out properly...

here is one more method. >>> var1 = 2 + 2 >>> print "the result of all calculations is %s and we are done." % var1 the result of all calculations is 4 and we are done.you can also p...
sixteenornumber General Coding Help 11 7,888 Dec-27-2016, 02:32 PM
    Thread: What can I do with _winreg ?
Post: What can I do with _winreg ?

I came across the module _winreg in 2.7.13 docs this morning.  I'm not very familiar with the windows registry.  How could this module be useful in Python development? https://docs.python.org/2.7/lib...
sixteenornumber General Coding Help 2 3,899 Dec-26-2016, 02:35 PM
    Thread: fast hash function
Post: RE: fast hash function

Use %timeit to compare them. here is an example. pip install pyhashxx some additional info on various algs: https://cyan4973.github.io/xxHash/ sample script # in ipython from pyhashxx import hashxx i...
sixteenornumber General Coding Help 3 5,956 Dec-13-2016, 01:48 PM
    Thread: conway's game of life / Single Responsibility Principle
Post: RE: conway's game of life / Single Responsibility ...

Does it read well? I normally look for the if __name__ is "__main__": line to figure out where the program starts. Maybe it was your intent to no put there in there and not a big deal. pip8 specifie...
sixteenornumber Homework 13 10,934 Dec-13-2016, 01:11 PM
    Thread: faster socket with multiprocessing.Pipe
Post: RE: faster socket with multiprocessing.Pipe

(Dec-06-2016, 07:55 PM)nilamo Wrote: I'd be interested in seeing the original code, before you resorted to multiprocessing.  Unless it's a lot of data on the line, I don't think you should have need...
sixteenornumber General Coding Help 2 6,536 Dec-10-2016, 06:52 PM
    Thread: faster socket with multiprocessing.Pipe
Post: faster socket with multiprocessing.Pipe

I have a socket receiving a TCP stream that WAS getting bottle necked with some of the processing.  I fixed the problem by giving the socket it's own dedicated process with multiprocessing.Process and...
sixteenornumber General Coding Help 2 6,536 Dec-04-2016, 02:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020