lericson / fish Goto Github PK
View Code? Open in Web Editor NEWThe Python module that swims
Home Page: http://sendapatch.se/
License: BSD 3-Clause "New" or "Revised" License
The Python module that swims
Home Page: http://sendapatch.se/
License: BSD 3-Clause "New" or "Revised" License
Setup fail because Readme filename changed
This was made for python 2 ๐
I wanted to test this out, but get errors form fish
This is based on the example in the README file:
from fish import ProgressFish
fish = ProgressFish()
churning = ['a', 'b', 'c']
def churn_churn():
pass
for i, x in enumerate(churning):
churn_churn()
fish.animate(amount=i)
The output is
Traceback (most recent call last):
File "./test.py", line 12, in <module>
fish.animate(amount=i)
File ".../tmp/fish/fish.py", line 166, in animate
return super(ProgressableFishBase, self).animate(*args, **kwds)
File ".../tmp/fish/fish.py", line 91, in animate
step = self.worldstep.next()
File ".../tmp/fish/fish.py", line 259, in worldstep_progressive
part = self.amount / float(self.total)
TypeError: float() argument must be a string or a number
If I add a total
to the ProgressFish
creation, then it works.
>>>import fish
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/sw/lib/python2.7/site-packages/fish.py", line 274, in <module>
default_fish = Fish()
File "/sw/lib/python2.7/site-packages/fish.py", line 71, in __init__
world_length = get_term_width() or 79
File "/sw/lib/python2.7/site-packages/fish.py", line 43, in get_term_width
return unpack("hh", ioctl(fp.fileno(), TIOCGWINSZ, " "))[1]
AttributeError: 'FakeStdin' object has no attribute 'fileno'
all I did was pip install fish
print fish_name
^
SyntaxError: Missing parentheses in call to 'print'
everyone should be able to see the most impressive progress bars for python.
since fcntl
and termios
are not availble on windows, this fish can not swim in windows dos prompt. What a pity
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.