Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 61492e2

Browse filesBrowse files
committed
adding function to check runtime duration
1 parent d92345f commit 61492e2
Copy full SHA for 61492e2

File tree

2 files changed

+10
-0
lines changed
Filter options

2 files changed

+10
-0
lines changed

‎plotly/__init__.py

Copy file name to clipboardExpand all lines: plotly/__init__.py
+8Lines 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

Copy file name to clipboard
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.