From 47c11169895c84da5a1b85b066c51e63c042fb8d Mon Sep 17 00:00:00 2001 From: Fluency <93673101+fluencydoc@users.noreply.github.com> Date: Thu, 23 Dec 2021 00:30:56 -0400 Subject: [PATCH] Fixed docstring params --- web/update_plots.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/web/update_plots.py b/web/update_plots.py index 49a31b1..f6dd22b 100755 --- a/web/update_plots.py +++ b/web/update_plots.py @@ -148,23 +148,8 @@ def update_file(filename, figure): """ Updates the file at `filename` with the plotly figure `figure`. - :param filename: The path to a JSON file containing a Plotly figure. - :type filename: - str, required. - The extension of the file must be .json or .js (for legacy reasons). - - Note that if you are using JupyterLab and want to open - your updated - HTML files in an external browser window then you should save your - notebook as an HTML file instead of as a Jupyter notebook. - For more - information see this guide on [using Jupyter with Google Colab](http://jupyter- - notebook.readthedocs.io/en/stable/examples/Notebook/Running%20Code.html#Running-code). - - If you are not using JupyterLab then it is recommended - that you use .html for all types of notebooks so that they can be opened in any web browser, including Chrome, Firefox and Edge on Windows and macOS - without any extra configuration needed (see below for more details). This is because some browsers do not support JavaScript which is used by default - by Plotly's exporting functions to generate + :param filename: The path to a JSON file. + :param figure: The Plotly figure. """ lines = read_file(filename) f_json = figure.to_json(pretty=True).replace('\n', '\n ')