Including magic commands in an interactive python file breaks automatic code formatting. For instance, this
#%%
%load_ext autoreload
%autoreload 2
#%%
a,b,c = [1 , 2 , 3]
will only be formatted to
#%%
# %load_ext autoreload
# %autoreload 2
#%%
a, b, c = [1, 2, 3]
if the magic commands are commented out. It would be nice if magic commands didn't throw off the formatter, at least if the file contains #%% cell delimiters.
Including magic commands in an interactive python file breaks automatic code formatting. For instance, this
will only be formatted to
if the magic commands are commented out. It would be nice if magic commands didn't throw off the formatter, at least if the file contains
#%%cell delimiters.