@@ -122,7 +122,9 @@ def to_mimebundle(self, fig_dict):
122
122
format = self .format ,
123
123
width = self .width ,
124
124
height = self .height ,
125
- scale = self .scale )
125
+ scale = self .scale ,
126
+ validate = False ,
127
+ )
126
128
127
129
if self .b64_encode :
128
130
image_str = base64 .b64encode (image_bytes ).decode ('utf8' )
@@ -354,6 +356,7 @@ def to_mimebundle(self, fig_dict):
354
356
animation_opts = self .animation_opts ,
355
357
default_width = '100%' ,
356
358
default_height = 525 ,
359
+ validate = False ,
357
360
)
358
361
359
362
return {'text/html' : html }
@@ -503,18 +506,20 @@ def to_mimebundle(self, fig_dict):
503
506
# Make directory for
504
507
os .makedirs (dirname , exist_ok = True )
505
508
506
- write_html (fig_dict ,
507
- filename ,
508
- config = self .config ,
509
- auto_play = self .auto_play ,
510
- include_plotlyjs = 'directory' ,
511
- include_mathjax = 'cdn' ,
512
- auto_open = False ,
513
- post_script = self .post_script ,
514
- animation_opts = self .animation_opts ,
515
- default_width = '100%' ,
516
- default_height = 525 ,
517
- validate = False )
509
+ write_html (
510
+ fig_dict ,
511
+ filename ,
512
+ config = self .config ,
513
+ auto_play = self .auto_play ,
514
+ include_plotlyjs = 'directory' ,
515
+ include_mathjax = 'cdn' ,
516
+ auto_open = False ,
517
+ post_script = self .post_script ,
518
+ animation_opts = self .animation_opts ,
519
+ default_width = '100%' ,
520
+ default_height = 525 ,
521
+ validate = False ,
522
+ )
518
523
519
524
# Build IFrame
520
525
iframe_html = """\
@@ -629,5 +634,6 @@ def render(self, fig_dict):
629
634
animation_opts = self .animation_opts ,
630
635
default_width = '100%' ,
631
636
default_height = '100%' ,
637
+ validate = False ,
632
638
)
633
639
open_html_in_browser (html , self .using , self .new , self .autoraise )
0 commit comments