We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0895003 commit 882e8e7Copy full SHA for 882e8e7
plotly/check_version.py
@@ -1,11 +1,12 @@
1
import os
2
import re
3
+import sys
4
5
6
def get_latest():
7
os.system('pip show plotly > pip_version.txt')
8
with open('pip_version.txt', 'r') as file:
- output = [i for i in file][2]
9
+ output = [i for i in file][sys.version_info.major]
10
latest_version = re.findall(r'([0-9\.]+)', output)[0]
11
return latest_version
12
plotly/version.py
@@ -1,3 +1 @@
__version__ = '1.9.7'
-
0 commit comments