diff --git a/cellbender/remove_background/report.py b/cellbender/remove_background/report.py index dfb5f90..04c30ec 100644 --- a/cellbender/remove_background/report.py +++ b/cellbender/remove_background/report.py @@ -51,7 +51,7 @@ def _run_notebook(file): def _to_html(file, output) -> str: subprocess.run(to_html_str(file=file, output=output), shell=True) - os.replace(file.replace(".ipynb", ".html"), output) + shutil.move(file.replace(".ipynb", ".html"), output) os.remove(file) return output