We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9aa0a commit ec7c557Copy full SHA for ec7c557
packages/python/plotly/commands.py
@@ -299,9 +299,9 @@ def update_plotlyjs_dev():
299
update_schema_bundle_from_master()
300
run_codegen()
301
302
-
303
-if "updateplotlyjsdev" in sys.argv:
304
- update_plotlyjs_dev()
305
-elif "updateplotlyjs" in sys.argv:
306
- print(plotly_js_version())
307
- update_plotlyjs(plotly_js_version())
+if __name__ == "__main__":
+ if "updateplotlyjsdev" in sys.argv:
+ update_plotlyjs_dev()
+ elif "updateplotlyjs" in sys.argv:
+ print(plotly_js_version())
+ update_plotlyjs(plotly_js_version())
0 commit comments