Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

khair1212

macrumors newbie
Original poster
Dec 16, 2022
2
0
I have been trying to download a ".ipynb" file, a python notebook file. But everytime it adds an extra .txt extension and I can't even change the extension by renaming the file. So, it's so irritating right now. Is there any way to ignore the .txt extension ?
 

arw

macrumors 65816
Aug 31, 2010
1,227
974
Who adds the additional extension? Safari?
If you are certain of the legitimacy of the file, you can give it any extension you want.
Have you enabled "Finder > Settings > Advanced > show all file extensions" ?
 
  • Like
Reactions: Knoedelbaum

LuisN

macrumors 6502a
Mar 30, 2013
737
688
Torres Vedras, Portugal
I have been trying to download a ".ipynb" file, a python notebook file. But everytime it adds an extra .txt extension and I can't even change the extension by renaming the file. So, it's so irritating right now. Is there any way to ignore the .txt extension ?
Yes you can. Put the cursor at the end of the txt extension with the cursor keys, press delete 4 times and enter OR, in terminal execute: mv “file name”. ipynb.txt “filename”.ipynb
 

khair1212

macrumors newbie
Original poster
Dec 16, 2022
2
0
Yes you can. Put the cursor at the end of the txt extension with the cursor keys, press delete 4 times and enter OR, in terminal execute: mv “file name”. ipynb.txt “filename”.ipynb
Using the terminal command I just able to change the extension. Thanks
 
Last edited by a moderator:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.