#946543 Add the ability to open a Jupyter notebook (.ipynb file) directly from file manager

#946543#5
Date:
2019-12-10 17:35:26 UTC
From:
To:
Is there a possibility to open a Jupyter notebook directly from the file manager? I wish I could just double-click on a Jupyter notebook or right-click and select "Open with Jupyter Notebook".

Opening a notebook from the file manager could be analogous to doing this in a terminal:

$ jupyter-notebook file-name.ipynb

Thanks a lot!

#946543#10
Date:
2019-12-13 20:20:41 UTC
From:
To:
Hi,

If I understand you correctly, you should contact to jupyter
(upstream) maintainers.

Here is just for jupyter debian packaging


Cheers,
Arias Emmanuel
@eamanu
http://eamanu.com

El mar., 10 de dic. de 2019 a la(s) 14:39, Amr Ibrahim
(amribrahim1987@hotmail.com) escribió:

#946543#15
Date:
2019-12-13 21:14:42 UTC
From:
To:
FWIW

I think it might actually be more appropriate for debian package
(although adopted upstream as well), to provide .desktop file which
would define that.  See
https://askubuntu.com/questions/162612/how-can-i-add-an-application-to-the-list-of-open-with-applications

the problem would be that mimetype of .ipynb is not specific enough

$> file --mime  /usr/share/doc/python-statsmodels/examples/notebooks/ols.ipynb
/usr/share/doc/python-statsmodels/examples/notebooks/ols.ipynb: text/plain; charset=us-ascii

$> file --mime --extension /usr/share/doc/python-statsmodels/examples/notebooks/ols.ipynb
/usr/share/doc/python-statsmodels/examples/notebooks/ols.ipynb: application/octet-stream; charset=us-ascii

and I didn't research if .desktop could also limit by extension...

and found

https://github.com/jupyter/notebook/issues/1922

#946543#20
Date:
2019-12-13 21:16:57 UTC
From:
To:
Thanks Yaroslav, I did not understand.

I will investigate it

Thanks

Cheers,
Arias Emmanuel
@eamanu
http://eamanu.com

El vie., 13 de dic. de 2019 a la(s) 18:14, Yaroslav Halchenko
(debian@onerussian.com) escribió: