PyCharm modifying every notebook in repo.
I do not use pycharm to work with notebooks and have never opened these notebooks in PyCharm.
We have hundreds stored in a repo along with other non-Jupyter python. Pycharm continually modifies notebooks by either replacing /u001b with /u001B or adding lines tot he end of the file.
How do I disable this? Or tell pycharm to leave notebooks alone altogether? It's incredibly annoying. The only other option will be to revert to an older version.
This behavior did not happen before 2022.3.2 for me.
Please sign in to leave a comment.
If you are not using PyCharm to edit Jupyter notebooks, you can exclude them from PyCharm. To do so, please navigate Settings | Editor | File Types, Ignored Files and Folders tab and add the .ipynb extension to the list.
Also, please take screenshots of unexpected additions/edits from PyCharm so I can fill out a bug report.
We are also seeing this with `2022.3.2`. Is there an existing bug for me to comment on?
Can I email an example to you? These are internal company files that I’d rather not post publicly.
Here's an example
Unfortunately I'm in a similar situation where a screenshot would be contrary to company policy.
I can say that Javlopez's example is exactly what I'm seeing too. Your answer on how to exclude Jupyter notebooks works for me; I think most of our Jupyter users use the browser UI, but I'll suggest holding off on them updating for now.
Thank you for the reply Daniil!
Also happening for me on 2022.3.2. I excluded .ipynb but it's still occurring.
Hello there,
I've reproduced the issue; here is a related thread on Youtrack. Please vote for it to raise its relevance and receive updates.
I tried the workaround but it does not work at all. This severally hurts my work progress. Where is the instruction for reverting back to the previous version?
After full download and install from 2022.3.2 back to 2022.3.1 then this workaround fixed. Just searched for this intellij version and did full install.
I switched to the community edition and the issue is gone now.
This is happening again with 24.1.1
Yup seeing it with `2024.1.1`
Is there a workaround here? it's making PyCharm nearly unusable.
I have had this problem for a while too. I keep getting the following popup in my browser:
I tried the solution above suggested by daniil and it did stop PyCharm from updating my Jupyter notebooks. The only thing I don't like about the solution is now when I do ctrl+shift+F in PyCharm, the notebooks in my project aren't included in the search. This makes sense I suppose, however, I have lots of notebooks and I use the “find in files…” search quite regularly.
So instead of adding the *.ipynb extension to the “Ignored Files and Folders” tab, I just removed the *.ipynb extension from the Jupyter notebooks entry under the first tab, “Recognized File Types”. If all your notebooks lose their cute little orange icon, you'll know you did it right.
Now my Jupyter notebooks are included in searches and PyCharm isn't trying to update my notebooks in the background. Win, Win.
Hope this helps
[PyCharm version: 2024.1.1]
Still happening with 2024.1.2
I find myself adding `git checkout @ -- notebooks/*.ipynb` before every commit :/
it seems pycharm is somehow examening the notebooks in the background, and thus the output fields change…