8000
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 2dd7c11 commit 0895003Copy full SHA for 0895003
plotly/__init__.py
@@ -40,5 +40,4 @@
40
"You're currently running {old}".format(old=__version__) +
41
", while the latest version is {}".format(_latest))
42
else:
43
- print("Plotly is currently up to date.\n" +
44
- "Plotly version: {}".format(__version__))
+ print("Plotly {} is currently up to date.\n".format(__version__))
plotly/check_version.py
@@ -6,7 +6,7 @@ def get_latest():
6
os.system('pip show plotly > pip_version.txt')
7
with open('pip_version.txt', 'r') as file:
8
output = [i for i in file][2]
9
- latest_version = re.findall(r'\s.*\n', output)[0][1:-1]
+ latest_version = re.findall(r'([0-9\.]+)', output)[0]
10
return latest_version
11
12
0 commit comments