[BUG] Certain cells that start with %%bash lead to Syntax error, even with 'flake8-noqa-cell' tag
hhaentze opened this issue · comments
Hartmut Häntze commented
Describe the bug
Certain cells that start with %%bash lead to Syntax error, even with 'flake8-noqa-cell' tag.
To Reproduce
Have a cell like:
%%bash
cd /home/myhome
This works, however:
%%bash
cd /home/myhome/
leads to syntax error. Another example:
%%bash
for type in ct mr
do
echo $type
done
Expected behavior
No syntax error when 'flake8-noqa-cell' tag is used.
Desktop
- OS: Rocky Linux 8.5
- Python: 3.11.3
- flake8-nb: 0.5.3
Temporary Quickfix
The problem disappeared after I marked my bash cells as raw. However, this is not desirable.
Hartmut Häntze commented
Update: I just downgraded my python version to 3.8 according to the environment.yaml and now it works without problems.
Hartmut Häntze commented
Closed as Resolved