Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace home directories in output by ~ #353

Open
Tracked by #345
mbackenkoehler opened this issue May 15, 2023 · 3 comments
Open
Tracked by #345

Replace home directories in output by ~ #353

mbackenkoehler opened this issue May 15, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mbackenkoehler
Copy link
Collaborator

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

@mbackenkoehler mbackenkoehler added the enhancement New feature or request label May 15, 2023
@mbackenkoehler mbackenkoehler self-assigned this May 15, 2023
@mbackenkoehler
Copy link
Collaborator Author

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

@dominiquesydow
Copy link
Collaborator

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants