Skip to content

Commit

Permalink
Merge pull request #580 from dclause/update/plotly
Browse files Browse the repository at this point in the history
Update Plotply to 2.20.0.
  • Loading branch information
falkoschindler authored Mar 22, 2023
2 parents 0c06dfa + 965aa86 commit 554b47a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Socket.io: 4.6.1
- Tailwind CSS: 3.2.6
- Tween.js: 18.6.4
- Plotly.js: 2.18.2
- Plotly.js: 2.20.0
- AG Grid: 29.1.0
- NippleJS: 0.10.1
- Mermaid: 9.4.3
Expand Down
6 changes: 3 additions & 3 deletions fetch_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ def request_buffered(url: str) -> bytes:
print('Tween.js:', version)

# plotly.js
url = 'https://plotly.com/javascript/'
url = 'https://cdnjs.com/libraries/plotly.js'
html = request_buffered_str(url)
soup = BeautifulSoup(html, 'html.parser')
version = soup.find('a', class_='plotly_js').text.strip().removeprefix('Javascript (v').removesuffix(')')
url = f'https://cdn.plot.ly/plotly-{version}.min.js'
version = soup.find('span', class_='vs__selected').text.strip()
url = f'https://cdnjs.cloudflare.com/ajax/libs/plotly.js/{version}/plotly.min.js'
js = request_buffered_str(url)
Path('nicegui/elements/lib/plotly.min.js').write_text(js)
print('Plotly.js:', version)
Expand Down
4 changes: 2 additions & 2 deletions nicegui/elements/lib/plotly.min.js

Large diffs are not rendered by default.

0 comments on commit 554b47a

Please sign in to comment.