Skip to content

Commit 8d5a1ca

Browse files
Gasoonjiafacebook-github-bot
authored andcommitted
fix tabular output
Differential Revision: D73146928
1 parent 2ff9abd commit 8d5a1ca

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/source/tutorials_source/devtools-integration-tutorial.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,18 @@ def forward(self, x):
201201
# sphinx_gallery_end_ignore
202202
inspector.print_data_tabular()
203203

204+
# sphinx_gallery_start_ignore
205+
# Display the actural inspector tabular table image
206+
import matplotlib.pyplot as plt
207+
import matplotlib.image as mpimg
208+
209+
# Load and display the image
210+
img = mpimg.imread('inspector_tabular.png')
211+
imgplot = plt.imshow(img)
212+
plt.axis('off') # Hide axes
213+
plt.show()
214+
# sphinx_gallery_end_ignore
215+
204216
# sphinx_gallery_start_ignore
205217
inspector_patch.stop()
206218
inspector_patch_print.stop()
789 KB
Loading

0 commit comments

Comments
 (0)