From 3ea30c029050c5125f510101a4beb22cfbdbf5b0 Mon Sep 17 00:00:00 2001 From: ziphei <41258328+ziphei@users.noreply.github.com> Date: Wed, 21 May 2025 14:34:40 +0800 Subject: [PATCH] The plotly figure is empty in the code block "Basic data" (#1902) * Update detailed_workflow.ipynb the result figure is empty * Update detailed_workflow.ipynb fix issue: the plotly figure is empty * The error message indicated that my code did not comply with the code style guidelines. Specifically, I had used double quotes "notebook" for the string, whereas the required format was single quotes 'notebook'. This has now been corrected. * comply with the code style guidelines. Specifically, I had used double quotes "notebook" for the string, whereas the required format was single quotes 'notebook'. This has now been corrected. * I didn't use nbqa black to reformat my code. Now is done! * recover_code --------- Co-authored-by: Linlang --- examples/tutorial/detailed_workflow.ipynb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tutorial/detailed_workflow.ipynb b/examples/tutorial/detailed_workflow.ipynb index 925a1fec6..2d70c23f4 100644 --- a/examples/tutorial/detailed_workflow.ipynb +++ b/examples/tutorial/detailed_workflow.ipynb @@ -171,7 +171,9 @@ "outputs": [], "source": [ "import plotly.graph_objects as go\n", + "import plotly.io as pio\n", "\n", + "pio.renderers.default = \"notebook\"\n", "fig = go.Figure(\n", " data=[\n", " go.Candlestick(\n",