volkamerlab / teachopencadd

TeachOpenCADD: a teaching platform for computer-aided drug design (CADD) using open source packages and data
https://projects.volkamerlab.org/teachopencadd
Creative Commons Attribution 4.0 International
757 stars 202 forks source link

Replace home directories in output by ~ #353

Open mbackenkoehler opened 1 year ago

mbackenkoehler commented 1 year ago

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

mbackenkoehler commented 1 year ago

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

dominiquesydow commented 1 year ago

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?

mbackenkoehler commented 1 year ago

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.