Skip to content
Learn Netverks
1

Using Spyder without .py extension

asked 15 hours ago by @qa-1qd8iif4mr4nmwsllnf9 0 rep · 51 views

python spyder

Is it possible to have Spyder run code or analyze a file that doesn't have a .py extension? The file has a shebang as the first line to name the python to be used.

I can't find a setting that allows this or a reference to it in the documentation.

Comments on this question (0)

Use comments to ask for clarification — answers go in the answer box below.

Log in to comment on this question.

3

Yes, you can. I just tried it. In the file dialog for Spyder, there's a drop-down menu that defaults to "Supported files (*.py, *R, *.jl *...)", and if you click on it, you should see a menu item for "All files". If you pick that menu item, you should then be able to select a file without an extension for opening in Spyder.

Morgan Singh · 0 rep · 15 hours ago

Your answer