Skip to content

Conversation

jalateras
Copy link

This PR fixes a missing step in the PyTorch going modular documentation where the going_modular directory needs to be created before writing Python scripts to it.

Changes

  • Added os.makedirs step before the first %%writefile command in section 2
  • Ensures going_modular directory exists before attempting to write data_setup.py
  • Prevents FileNotFoundError when users follow the notebook instructions

Impact

Users can now successfully follow the notebook without encountering directory creation errors when the %%writefile commands execute.

Add os.makedirs step before first %%writefile command to ensure
going_modular directory exists before writing Python scripts to it.
This prevents FileNotFoundError when users follow the notebook.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant