@@ -68,17 +68,20 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
6868 plot_json = json.load(plot_file)
6969
7070# Keep only 'data' and 'layout' sections
71- plot_json = {key: plot_json[key] for key in plot_json if key in ['data', 'layout']}
72-
71+ plot_json = {key: plot_json[key] for key in plot_json
72+ if key in ['data', 'layout']
73+ }
7374# Remove 'frame' section in 'data'
74- plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'} for entry in plot_json.get('data', [])]
75-
75+ plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'}
76+ for entry in plot_json.get('data', [])
77+ ]
7678# Convert JSON to string
7779plot_json_str = json.dumps(plot_json)
78-
7980# Create the plotly plot
8081fig_plotly = pio.from_json(plot_json_str)
81- fig_plotly.update_layout(autosize=False, width=950, height=400, margin=dict(b=50, t=50, l=50, r=50))
82+ fig_plotly.update_layout(autosize=False, width=950, height=400,
83+ margin=dict(b=50, t=50, l=50, r=50)
84+ )
8285
8386fig_plotly.show()
8487```
@@ -96,7 +99,8 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
9699plot_json_str = json.dumps(plot_json)
97100
98101# Create the altair plot
99- fig_altair = alt.Chart.from_json(plot_json_str).properties(width=900, height=370)
102+ fig_altair = alt.Chart.from_json(plot_json_str
103+ ).properties(width=900, height=370)
100104
101105fig_altair
102106```
@@ -111,17 +115,20 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
111115 plot_json = json.load(plot_file)
112116
113117# Keep only 'data' and 'layout' sections
114- plot_json = {key: plot_json[key] for key in plot_json if key in ['data', 'layout']}
115-
118+ plot_json = {key: plot_json[key] for key in plot_json
119+ if key in ['data', 'layout']
120+ }
116121# Remove 'frame' section in 'data'
117- plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'} for entry in plot_json.get('data', [])]
118-
122+ plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'}
123+ for entry in plot_json.get('data', [])
124+ ]
119125# Convert JSON to string
120126plot_json_str = json.dumps(plot_json)
121-
122127# Create the plotly plot
123128fig_plotly = pio.from_json(plot_json_str)
124- fig_plotly.update_layout(autosize=False, width=950, height=400, margin=dict(b=50, t=50, l=50, r=50))
129+ fig_plotly.update_layout(autosize=False, width=950, height=400,
130+ margin=dict(b=50, t=50, l=50, r=50)
131+ )
125132
126133fig_plotly.show()
127134```
@@ -136,17 +143,20 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
136143 plot_json = json.load(plot_file)
137144
138145# Keep only 'data' and 'layout' sections
139- plot_json = {key: plot_json[key] for key in plot_json if key in ['data', 'layout']}
140-
146+ plot_json = {key: plot_json[key] for key in plot_json
147+ if key in ['data', 'layout']
148+ }
141149# Remove 'frame' section in 'data'
142- plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'} for entry in plot_json.get('data', [])]
143-
150+ plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'}
151+ for entry in plot_json.get('data', [])
152+ ]
144153# Convert JSON to string
145154plot_json_str = json.dumps(plot_json)
146-
147155# Create the plotly plot
148156fig_plotly = pio.from_json(plot_json_str)
149- fig_plotly.update_layout(autosize=False, width=950, height=400, margin=dict(b=50, t=50, l=50, r=50))
157+ fig_plotly.update_layout(autosize=False, width=950, height=400,
158+ margin=dict(b=50, t=50, l=50, r=50)
159+ )
150160
151161fig_plotly.show()
152162```
@@ -164,7 +174,8 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
164174plot_json_str = json.dumps(plot_json)
165175
166176# Create the altair plot
167- fig_altair = alt.Chart.from_json(plot_json_str).properties(width=900, height=370)
177+ fig_altair = alt.Chart.from_json(plot_json_str
178+ ).properties(width=900, height=370)
168179
169180fig_altair
170181```
@@ -179,17 +190,20 @@ with open(report_dir /'../../../../../docs/example_data/Basic_example_vuegen_dem
179190 plot_json = json.load(plot_file)
180191
181192# Keep only 'data' and 'layout' sections
182- plot_json = {key: plot_json[key] for key in plot_json if key in ['data', 'layout']}
183-
193+ plot_json = {key: plot_json[key] for key in plot_json
194+ if key in ['data', 'layout']
195+ }
184196# Remove 'frame' section in 'data'
185- plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'} for entry in plot_json.get('data', [])]
186-
197+ plot_json['data'] = [{k: v for k, v in entry.items() if k != 'frame'}
198+ for entry in plot_json.get('data', [])
199+ ]
187200# Convert JSON to string
188201plot_json_str = json.dumps(plot_json)
189-
190202# Create the plotly plot
191203fig_plotly = pio.from_json(plot_json_str)
192- fig_plotly.update_layout(autosize=False, width=950, height=400, margin=dict(b=50, t=50, l=50, r=50))
204+ fig_plotly.update_layout(autosize=False, width=950, height=400,
205+ margin=dict(b=50, t=50, l=50, r=50)
206+ )
193207
194208fig_plotly.show()
195209```
@@ -278,7 +292,9 @@ Optional description for subsection.
278292
279293
280294<div style =" text-align : center ;" >
281- <iframe src =" static/Man_Example.html " alt =" Man Example plot " width =" 800px " height =" 630px " ></iframe >
295+ <iframe src="static/Man_Example.html" alt="Man Example plot"
296+ width="800px" height="630px">
297+ </iframe >
282298</div >
283299
284300## Static Networks
@@ -301,7 +317,9 @@ Optional description for subsection.
301317
302318
303319<div style =" text-align : center ;" >
304- <iframe src =" ../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/4_Html/1_All_html/2_ckg_network.html " alt =" Ckg Network plot " width =" 800px " height =" 630px " ></iframe >
320+ <iframe src="../../../../../docs/example_data/Basic_example_vuegen_demo_notebook/4_Html/1_All_html/2_ckg_network.html" alt="Ckg Network plot"
321+ width="800px" height="630px">
322+ </iframe >
305323</div >
306324
307325### Multiqc Report
0 commit comments