Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jun 26, 2024
1 parent f04f5c3 commit ff738bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jupyterlite_sphinx/jupyterlite_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,15 @@ def run(self):
# are expected to be found.

import tempfile

temp_dir = tempfile.mkdtemp()
# Copy notebooks in notebooks_dir to temp_dir
shutil.copy(notebook, temp_dir)

if self.env.config.strip_tagged_cells:
print(f"{notebook}: Removing cells tagged with 'strip' metadata set to 'true'")
print(
f"{notebook}: Removing cells tagged with 'strip' metadata set to 'true'"
)

# Note: the directives meant to be stripped must be inside their own
# cell so that the cell itself gets removed from the notebook. This
Expand Down

0 comments on commit ff738bc

Please sign in to comment.