Skip to content

Commit

Permalink
Merge pull request #42 from godatadriven/keep-answer-path
Browse files Browse the repository at this point in the history
keep answer path
  • Loading branch information
cobac committed Feb 9, 2024
2 parents 2db2d95 + 87ffc5d commit b581e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asekuro/common.py
Expand Up @@ -142,7 +142,7 @@ def make_testable_notebook(nbpath, remove_meta=True):
.replace('%load ', '')
)
with open(py_path, 'r') as f:
cell['source'] = f.read()
cell['source'] = "# Answer loaded from: " + py_path + "\n" + f.read()
logger.info(f'after loading cell content: {cell["source"]}')
nbformat.write(notebook, open(_testfile(nbpath=nbpath), mode='w'))
logger.info(f"wrote notebook ready for testing over at {_testfile(nbpath=nbpath)}")
Expand Down

0 comments on commit b581e1a

Please sign in to comment.