add support for ipython/jupyter notebooks
This commit is contained in:
@@ -151,6 +151,7 @@ application/vnd.sun.xml.writer.template = \
|
||||
#application/x-tar = execm rcltar
|
||||
|
||||
application/epub+zip = execm rclepub
|
||||
application/x-ipynb+json = exec jupyter nbconvert --to script --stdout ; mimetype = text/plain
|
||||
application/javascript = internal text/plain
|
||||
application/ogg = execm rclaudio
|
||||
application/pdf = execm rclpdf.py
|
||||
@@ -256,6 +257,7 @@ application/ogg = sownd
|
||||
application/pdf = pdf
|
||||
application/postscript = postscript
|
||||
application/sql = source
|
||||
application/x-ipynb+json = document
|
||||
application/vnd.ms-excel = spreadsheet
|
||||
application/vnd.ms-office = document
|
||||
application/vnd.ms-outlook = document
|
||||
@@ -407,13 +409,14 @@ text = \
|
||||
application/x-dvi \
|
||||
application/x-gnote \
|
||||
application/x-gnuinfo \
|
||||
application/x-ipynb+json \
|
||||
application/x-kword \
|
||||
application/x-lyx \
|
||||
application/x-mobipocket-ebook \
|
||||
application/x-okular-notes \
|
||||
application/x-perl \
|
||||
application/x-php \
|
||||
application/x-ruby \
|
||||
application/x-ruby \
|
||||
application/x-scribus \
|
||||
application/x-shellscript \
|
||||
application/x-tex \
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
.sql = application/sql
|
||||
.tcl = text/x-tcl
|
||||
|
||||
.ipynb = application/x-ipynb+json
|
||||
|
||||
.xml = text/xml
|
||||
|
||||
.note = application/x-gnote
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
xallexcepts = application/pdf application/postscript application/x-dvi \
|
||||
text/html|gnuinfo text/html|chm text/html|epub text/html|rclman \
|
||||
application/x-fsdirectory|parentopen inode/directory|parentopen \
|
||||
application/vnd.ms-visio.drawing
|
||||
application/vnd.ms-visio.drawing application/x-ipynb+json
|
||||
|
||||
|
||||
[view]
|
||||
@@ -40,6 +40,8 @@ application/epub+zip = ebook-viewer %f
|
||||
# html documents. This is almost always what we want.
|
||||
text/html|epub = ebook-viewer %F;ignoreipath=1
|
||||
|
||||
application/x-ipynb+json = jupyter notebook %f
|
||||
|
||||
application/x-gnote = gnote %f
|
||||
|
||||
application/x-mobipocket-ebook = ebook-viewer %f
|
||||
|
||||
Reference in New Issue
Block a user