Skip to content

Commit

Permalink
Fetching plotlyjs from cdn (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddhantSadangi authored Nov 4, 2024
1 parent a4b05f1 commit 8efda73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
"source": [
"from neptune.types import File\n",
"\n",
"run[\"matplotlib-interactive\"].upload(File.as_html(figure))"
"run[\"matplotlib-interactive\"].upload(File.as_html(figure, include_plotlyjs=\"cdn\"))"
]
},
{
Expand Down Expand Up @@ -483,7 +483,7 @@
"metadata": {},
"outputs": [],
"source": [
"run[\"plotly\"].upload(fig)"
"run[\"plotly\"].upload(fig, include_plotlyjs=\"cdn\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
## Log interactive chart to Neptune
from neptune.types import File

run["matplotlib-interactive"].upload(File.as_html(figure))
run["matplotlib-interactive"].upload(File.as_html(figure, include_plotlyjs="cdn"))

# Log Plotly charts to Neptune
## Create a sample chart
Expand All @@ -100,7 +100,7 @@
fig = px.scatter_3d(df, x="sepal_length", y="sepal_width", z="petal_width", color="species")

## Log interactive chart to Neptune
run["plotly"].upload(fig)
run["plotly"].upload(fig, include_plotlyjs="cdn")

# Log Seaborn charts to Neptune
## Create a sample chart
Expand Down

0 comments on commit 8efda73

Please sign in to comment.