Skip to content

Commit c8f2368

Browse files
committed
remove notebook standizer execution
1 parent 50e7cd1 commit c8f2368

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

utils/notebook_version_standardizer.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,7 @@ def cli():
109109
@cli.command()
110110
def standardize():
111111
notebooks = _get_ipython_notebooks(DOCS_PATH)
112-
executed_notebooks, empty_cells, versions = _get_notebooks_with_executions_and_empty(notebooks)
113-
if executed_notebooks:
114-
_standardize_outputs(executed_notebooks)
115-
executed_notebooks = ["\t" + notebook for notebook in executed_notebooks]
116-
executed_notebooks = "\n".join(executed_notebooks)
117-
click.echo(
118-
f"Removed the outputs for:\n {executed_notebooks}"
119-
)
112+
_, empty_cells, versions = _get_notebooks_with_executions_and_empty(notebooks)
120113
if empty_cells:
121114
_remove_notebook_empty_last_cell(empty_cells)
122115
empty_cells = ["\t" + notebook for notebook in empty_cells]
@@ -136,14 +129,7 @@ def standardize():
136129
@cli.command()
137130
def check_execution():
138131
notebooks = _get_ipython_notebooks(DOCS_PATH)
139-
executed_notebooks, empty_cells, versions = _get_notebooks_with_executions_and_empty(notebooks)
140-
if executed_notebooks:
141-
executed_notebooks = ["\t" + notebook for notebook in executed_notebooks]
142-
executed_notebooks = "\n".join(executed_notebooks)
143-
raise SystemExit(
144-
f"The following notebooks have executed outputs:\n {executed_notebooks}\n"
145-
"Please run make lint-fix to fix this."
146-
)
132+
_, empty_cells, versions = _get_notebooks_with_executions_and_empty(notebooks)
147133
if empty_cells:
148134
empty_cells = ["\t" + notebook for notebook in empty_cells]
149135
empty_cells = "\n".join(empty_cells)

0 commit comments

Comments
 (0)