-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added media collection feature (#10)
* commented 'html_static_path' out to get rid of the warning * Added linked image to the notebook as a test case * added vscode config to .gitignore * added collected media to .gitignore * added image in a sub directory, which is included in the notebook * added "extra-media" key and paths to the .nblink file * implemented media collection based on "extra-media" key in the .nblink file * updated instructions on usage, to reflect the media collection feature * fixed bug which did lead to wrong source path * reverted formatting changes * replaced python_logo.png with self drawn smile.png * implemented changes marked as resolved * updated the description of "extra-media" in README.rst * rewrote the file copy function and added dependency registration * refactored 'register_dependency' into 'copy_file' * removed commented 'html_static_path' from conf.py * moved 'os.makedirs(dest)' out of the loop * Ensure copy_and_register_files handles subdirs * added 'note_reread' for extra-media * fixed wrong implementation of 'note_reread' and fixed copying of files in sub-sub-directory's * added media file in sub-sub-directory to the notebook * Only note_reread if any args are dirs * Cleanup docstring * Add info note to readme about extra media * Make reread code more readable
- Loading branch information
Showing
9 changed files
with
185 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"path": "../../notebooks/introduction.ipynb" | ||
"path": "../../notebooks/introduction.ipynb", | ||
"extra-media": [ | ||
"../../notebooks/images", | ||
"../../notebooks/smile.png", | ||
"not_a_path" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.