Skip to content

Commit 291f9f4

Browse files
tdhopperclaude
andcommitted
Deprecate plotly authentication script
Mark .travis/authenticate_plotly.py as deprecated with explanation. With plotly v5+, credentials are not required for local rendering. Plotly authentication is only needed for uploading to Chart Studio. This project renders plots locally to PNG using Kaleido, so no authentication is necessary. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent edb7a82 commit 291f9f4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.travis/authenticate_plotly.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1-
import plotly
2-
import os
3-
plotly.tools.set_credentials_file(username=os.environ.get('PLOTLY_USER'), api_key=os.environ.get('PLOTLY_API_KEY'))
1+
# DEPRECATED: This file is no longer used.
2+
#
3+
# With plotly v5+, credentials are not required for local rendering.
4+
# Plotly authentication is only needed if uploading to Chart Studio.
5+
# This project renders plots locally to PNG using Kaleido, so no
6+
# authentication is necessary.
7+
#
8+
# Historical code (plotly v4):
9+
# import plotly
10+
# import os
11+
# plotly.tools.set_credentials_file(username=os.environ.get('PLOTLY_USER'), api_key=os.environ.get('PLOTLY_API_KEY'))
12+
13+
import sys
14+
print("Warning: plotly authentication is no longer needed with plotly v5+", file=sys.stderr)
15+
print("This script is deprecated and can be removed.", file=sys.stderr)

0 commit comments

Comments
 (0)