Strip .ipynb extension for display

pull/6294/head
Jason Weill 4 years ago
parent 4fd58de3d9
commit b07f59a165

@ -468,7 +468,10 @@ const title: JupyterFrontEndPlugin<void> = {
const newPath = current.context.path ?? result.path;
const basename = PathExt.basename(newPath);
h.textContent = basename;
// Don't show the file extension for .ipynb files.
const stripIpynb = /\.ipynb$/;
h.textContent = basename.replace(stripIpynb, '');
if (!router) {
return;
}

Loading…
Cancel
Save