volkamerlab/teachopencadd

Replace home directories in output by ~

mbackenkoehler opened this issue · 3 comments

Basically, we can do a sed on all ipynb files.

For example:
find teachopencadd -name "*.ipynb" -exec sed -i 's/\/home\/[A-Za-z]*\//~\//g' {} \;

What is this issue about? I do not understand what's being replaced here. Maybe provide an example of what you want to do or have done?

Some notebooks output absolute paths. Most of them are inside warnings. I think it looks a bit nicer if it doesn't contain paths like /home/michael.