Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61492e2

Browse files
committed
adding function to check runtime duration
1 parent d92345f commit 61492e2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

plotly/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@
3131
from plotly import (plotly, graph_objs, grid_objs, tools, utils, session,
3232
offline)
3333
from plotly.version import __version__
34+
from plotly.check_version import get_latest
35+
36+
_latest = get_latest()
37+
38+
if __version__ != _latest :
39+
print("Your version of Plotly is currently outdated,\n" +
40+
"You're currently running {old}".format(old=__version__) +
41+
", while the latest version is {}".format(_latest))

plotly/version.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
__version__ = '1.9.7'
2+
3+

0 commit comments

Comments
 (0)