Marker line regex not used for source file
When punching and filling a notebook, using custom markers specified by a specialized config file, with command-line argument --config, the behavior is not as I would expect. When the global config file is adapted, the result is as expected.
Example files are in the following .zip:
To reproduce unexpected behavior:
nbtb punch Notebook-to-punch.ipynb --fill --source Source-notebook.ipynb --config specialized-config.json
To reproduce expected behavior:
- replace the standard global config file by the nbtoolbelt.json file, which can be found in the folder "Folder-with-global-config-with-desired-outcome". The only change is that TODO is replaced by TEST in the marker regexes (in six places)
nbtb punch Notebook-to-punch.ipynb --fill --source Source-notebook.ipynb