You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New to notebook extensions and most all web development concepts. I’m attempting to change JupyterLab’s favicon using this cookiecutter theme, with the ultimate goal of being able to change the favicon based on a config file. I’m using a slight modification of this SOF post, included within my src/index.ts file.
let head = document.head || document.getElementsByTagName('head')[0];
function changeFavicon(src: string) {
let link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
link.rel = 'icon';
link.type = 'image/x-icon';
link.href = src;
if (oldLink) {
head.removeChild(oldLink);
}
head.appendChild(link);
}
(See my post here on the Jupyter forums)
New to notebook extensions and most all web development concepts. I’m attempting to change JupyterLab’s favicon using this cookiecutter theme, with the ultimate goal of being able to change the favicon based on a config file. I’m using a slight modification of this SOF post, included within my
src/index.tsfile.When I call…
…the favicon changes appropriately. But how would I access a
favicon.icofile stored within my very own local extension directory?A step further, how could I change the path to different favicon files using a config file?