【发布时间】:2021-08-07 03:31:43
【问题描述】:
我的目标是每次使用 jupyter 打开笔记本时都显示一个徽标。我这样做的方法是创建一个
- custom.js
- custom.css
.jupyter/custom/ 中的文件。
custom.js:
var html_outlie = `
<div id="test-container" class="container">
<div id="test-logo">
<img src="<what_location??>/logo.png"></img>
</div>
</div>
`
jQuery("#notebook_panel").prepend(html_outlie)
我的 custom.css 有:
#test-container {
background-color: white;
padding: 50px 0;
}
#test-logo {
text-align: center;
padding-bottom: 50px;
}
问题是,根据我启动笔记本的路径,徽标不会显示。如何使用绝对路径,以便无论我从哪里开始我的笔记本,徽标都会始终显示?
下一步将是每个在自己的计算机上工作并使用相同的自定义设置的人都会看到徽标。
【问题讨论】:
标签: jupyter-notebook ipython jupyter