Open .sql file in jupyter text editor

I am using a jupyter server, and for some reason, any open .sql that I open is loading, and not opening in a text editor. As far as I can tell, these are only .sql files that are processed this way, any text extension is opened. Changing the file extension from .sql to something else will solve the problem, but I want to save the file extension for syntax highlighting in jupyter and other text editors. Is there a configuration file somewhere that controls the default file open action?

I use jupyter 1.0.0
Ubuntu 16.04 (server and client)
behavior is observed in chrome and firefox

update:
this looks like this question https://github.com/jupyter/notebook/issues/1408
In addition, updating the laptop package to version 5.0.0 adds an edit button to effectively solve the problem. But the main problem still exists, you can see that by checking the .sql link, it is still a file link, not an edit link.

to update your laptop conda update notebook

+4
source share
1 answer

I recommend using jupyter lab instead of laptops if you are interested in the jupyter text editor.

blog post

-1
source

Source: https://habr.com/ru/post/1675548/


All Articles