Synced progress bar for Python and Jupyter notebooks.
To import into your program:
from syncedPB import syncedPB
Progress bar on a loop:
for i in syncedPB(range(100)):
time.sleep(0.1)
If you are working on a Jupyter notebook, and you want a cool popup display when your loop is done:
for i in syncedPB(range(100), popup=True):
time.sleep(0.1)
If all goes as planned, the latest version should be uploaded into the Pypi repository. Therefore, the typicall rules for pip apply:
-
Installing:
pip install syncedPB.whl
-
Updating:
pip install -U syncedPB.whl
The latest wheel file can be found in the release section of the repo, or here.
Once downloaded you can install it by:
pip install *.whl
In case you are working on a Jupyter notebook on a remote server, a quick spreadsheet to install it from unix terminal:
wget https://github.com/javirrs/syncedPB/releases/download/v-VersionNumber/syncedPB-version_name.whl
pip install syncedPB-version_name.whl
rm syncedPB-version_name.whl
If you want to update to a new version, just follow the steps above and your package version will update to the latest one (or the newest one being installed).
Please report any bug (or any cool idea to implement) by opening an issue. Also, pull requestai and collaborators are welcome.