UCL / rsd-engineeringcourse

Course materials for Research Software Engineering course.
http://github-pages.ucl.ac.uk/rsd-engineeringcourse/
Other
108 stars 97 forks source link

%%bash magic raises error with some commands #170

Closed ageorgou closed 4 years ago

ageorgou commented 4 years ago

For an example, see the output from the pycodestyle invocation at the linting section of the notes:

---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-12-24d47916ce0c> in <module>
----> 1 get_ipython().run_cell_magic('bash', '', 'pycodestyle species.py\n')

<snip>

CalledProcessError: Command 'b'pycodestyle species.py\n'' returned non-zero exit status 1.

The command still runs and produces the expected output, but it does not exit correctly for some reason. This looks like a recent change. Changing the magic to %%bash --no-raise-error seems to fix this.