Skip to content

Commit 668b282

Browse files
committed
formating using the black formatter
1 parent 6a6286a commit 668b282

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: packages/python/plotly/plotly/io/_base_renderers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ def open_html_in_browser(html, using=None, new=0, autoraise=True):
670670
html = html.encode("utf8")
671671

672672
if isinstance(using, tuple):
673-
using = [i for i in webbrowser._browsers.keys() if any(j in i for j in using)][0]
673+
using = [i for i in webbrowser._browsers.keys() if any(j in i for j in using)][
674+
0
675+
]
674676

675677
class OneShotRequestHandler(BaseHTTPRequestHandler):
676678
def do_GET(self):

Diff for: packages/python/plotly/plotly/io/_renderers.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ def show(fig, renderer=None, validate=True, **kwargs):
439439
renderers["browser"] = BrowserRenderer(config=config)
440440
renderers["firefox"] = BrowserRenderer(config=config, using=("firefox"))
441441
renderers["chrome"] = BrowserRenderer(config=config, using=("chrome", "google-chrome"))
442-
renderers["chromium"] = BrowserRenderer(config=config, using=("chromium", "chromium-browser"))
442+
renderers["chromium"] = BrowserRenderer(
443+
config=config, using=("chromium", "chromium-browser")
444+
)
443445
renderers["iframe"] = IFrameRenderer(config=config, include_plotlyjs=True)
444446
renderers["iframe_connected"] = IFrameRenderer(config=config, include_plotlyjs="cdn")
445447
renderers["sphinx_gallery"] = SphinxGalleryHtmlRenderer()

0 commit comments

Comments
 (0)