Openning .py files stopped working

I am using Jupyter in a conda environment. Recently I have changed the environment and discovered a change of behavior for opening .py files.
My .py files contain the #%% mark to split lines of code into cells. When opening the .py file with the new environment, it doesn’t recognize them as python and doesn’t split into different cells.
I’m wondering if there’s some plugin that needs to be installed but wasn’t able to find anything.
Any help would be appreciated.
Thank you.

Which exact application are you talking about?

Jupyter notebook, which is run under slurm (high-performance computer).

1 Like

Does anyone have any idea about a possible solution?