Skip to content

Commit

Permalink
🐛 try show method, and use basic example from plotly
Browse files Browse the repository at this point in the history
  • Loading branch information
enryH committed Feb 18, 2025
1 parent 54242b7 commit 77c0caa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
15 changes: 14 additions & 1 deletion docs/api_examples/enrichment_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,20 @@
"figure = viz.get_pca_plot(data=pca_result, identifier=\"PCA enrichment\", args=args)\n",
"figure = go.Figure(data=figure[\"data\"], layout=figure[\"layout\"])\n",
"# figure = go.FigureWidget(figure)\n",
"figure"
"figure.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "df081dec",
"metadata": {},
"outputs": [],
"source": [
"import plotly.express as px\n",
"\n",
"fig = px.bar(x=[\"a\", \"b\", \"c\"], y=[1, 3, 2])\n",
"fig.show()"
]
},
{
Expand Down
8 changes: 7 additions & 1 deletion docs/api_examples/enrichment_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@
figure = viz.get_pca_plot(data=pca_result, identifier="PCA enrichment", args=args)
figure = go.Figure(data=figure["data"], layout=figure["layout"])
# figure = go.FigureWidget(figure)
figure
figure.show()

# %%
import plotly.express as px

fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig.show()

# %% [markdown]
# # Compare two distributions - KS test
Expand Down

0 comments on commit 77c0caa

Please sign in to comment.