In the Jupyter Notebook when I activate %pycodestyle_on from the extension pycodestyle_magic, applying Code Prettify to the notebook cells results in a browser pop-up message SyntaxError: Unexpected token : in JSON at position 1. It doesn't give this error for a simple code like a=1 but for something slightly complicated like import of two modules, it does (see the example below). I was wondering if the extension pycodestyle_magic does something fishy or is it a bug within Code Prettify? 🤔
Example
The first cell loads pycodestyle_magic and activates style checking for all cells.
In the Jupyter Notebook when I activate
%pycodestyle_on
from the extension pycodestyle_magic, applying Code Prettify to the notebook cells results in a browser pop-up messageSyntaxError: Unexpected token : in JSON at position 1
. It doesn't give this error for a simple code likea=1
but for something slightly complicated like import of two modules, it does (see the example below). I was wondering if the extension pycodestyle_magic does something fishy or is it a bug within Code Prettify? 🤔Example
The first cell loads pycodestyle_magic and activates style checking for all cells.
Code Prettify works for this cell.
But gives an error for this one.