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

Replacing cells with %load fails if the cells contain an additional new line #39

Open
hgrif opened this issue Jan 9, 2020 · 0 comments

Comments

@hgrif
Copy link
Member

hgrif commented Jan 9, 2020

A cell with

%load bla.py

Will give a FileNotFoundError: [Errno 2] No such file or directory: 'bla.py\n'.

On one hand, we might only want to have cells with a nice single line with %load. On the other hand, we often get feedback after a pipeline of 15 mins so it could be nice to be more lenient (and I don't know what will happen if you have a trailing whitespace). A .strip()here could save some hassle.

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

No branches or pull requests

1 participant