Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the jupyter favicon.ico

I'm looking for to customize the a jupyter notebook.

How to change the jupyter notebook favicon.ico[1] ?

[1] https://en.wikipedia.org/wiki/Favicon

like image 409
user3313834 Avatar asked Jan 06 '16 17:01

user3313834


1 Answers

The proper elegant way to override the existing default favicon, without rewriting it is to create a ~/.jupyter/custom/custom.js file with the following content:

requirejs([
    'jquery',
    'base/js/utils',
], function($, utils
    ){

    utils.change_favicon("custom/favicon.ico")
});

Place your custom favicon.ico to the same folder.

There is a doc page that does not provide a solution, but talks about custom.js mechanism in general.

like image 146
Dmitry Mikushin Avatar answered Sep 21 '22 20:09

Dmitry Mikushin