Up until recently, I could click a link to a locally stored Python source file (.py extension) and it would display as a plain text file in Firefox. This is what … (læs mere)
Up until recently, I could click a link to a locally stored Python source file (.py extension) and it would display as a plain text file in Firefox. This is what I want; e.g., it is a way that I view my notes, refer to examples, and so on.
Starting a few days ago, when I click such a link, I now get a pop-up window with the two options "Open with" or "Save file." I have tried a number of things to get back to the old behavior, including deleting the handlers.json file in my Profile folder, running a full Refresh, and creating a new profile. None of these got me back to the old behavior: displaying the .py file as plain text.
If I set the "Open with" option in that pop-up window to Firefox, I just keep getting the pop-up over and over again, while a new tab is created each time.
Note: if I look at a .py file on GitHub, there is no problem: again, the file just displays.
I suspected this behavior is connected with my having installed the latest version of Python (3.9.6) a few days ago, and I just confirmed this by updating Python on another machine. That is, on the other machine, the .py file would display as plain text until just now, after I update Python there.
So, I believe the Python installation is the cause of the problem, but, nonetheless, it seems to me that I should be able to set (or unset?) something within Firefox to make .py files open as plain text, as they used to.
Thanks in advance.