jupyter-notebook - Jupyter 笔记本 mathjax 内联符号与文本重叠
问题描述
我在 Mozilla Firefox (66.0.3) 中使用 ipykernel (v5.1.0) 运行 Jupyter notebook,但我也看到 Chrome 中发生了这种情况。如果该信息相关,我使用的是 Windows 10、64 位。
在现有笔记本上渲染 mathjax 时,它通常看起来像:
其中内联 mathjax 符号似乎与正文重叠。似乎渲染器将数学内容视为具有零宽度(?)。
只是要清楚:
- 数学符号在我输入时显示正常;如果我执行降价单元格,它们甚至看起来都很好。
- 只有当我保存笔记本、退出服务器、启动新的 jupyter 服务器并再次启动笔记本时,才会出现上述问题。
- 从图像中可以看出,它只影响内联数学,而不影响显示的数学。
- 我可以通过在每个新会话中重新执行 markdown 单元来修复它,但它变得非常烦人。
底层代码如下所示:
<span class="kw">Principal Component Analysis</span> is an unsupervised linear transformation technique.
It helps to identify patterns in data based on correlations between features.
PCA aims to find the directions of maximum variance in high-dimensional data and projects them onto a new subspace spanned by these vectors (with equal/fewer dimensions than the original one).
Mathematically-speaking, we construct a $d\times k$-dimensional transformation matrix $W$ that allows us to map a sample vector $x$ in $d$-dimensional feature space ($x\in \mathbb{R}^d$) onto a new $k$-dimensional subspace.
$$
x \longrightarrow z = xW
$$
**General PCA algorithm**
1. Center the $d$-dimensional dataset around the origin. Z-scoring (dividing by stdev may help, or not).
2. Construct covariance matrix.
3. Decompose the covariance matrix onto its eigenvectors and eigenvalues.
4. Sort the eigenvalues by decreasing order to rank the corresponding eigenvectors.
5. Select $k$ eigenvectors that correspond to the $k$ largest eigenvalues, where $k$ is the dimensionality of the new feature subspace ($k\leq d$)
6. Construct a projection matrix $W$ from the $k$ eigenvectors chosen in step 4.
7. Perform the projection by multiplying $X^\top W$ (a $n\times k$ matrix), to obtain a new $k$-dimensional feature subspace.
我不认为我自己是唯一遇到这种情况的人,但我无法找到任何人在网上讨论这个问题。我该如何解决?
解决方案
推荐阅读
- node.js - 如何在 node.js 中正确排序异步函数?
- javascript - 使用javascript动态地将值传递给进度条
- vim - Ctrl + w + w 显然无法在谷歌计算引擎窗口上切换选项卡
- javascript - 为什么按索引访问我的对象会给我未定义?
- php - 无法通过 CodeIgniter 查询生成器和 ODBC 连接获取数据
- hyperledger-fabric - 使用 LEVELDB 的 Hyperledger Fabric 的状态同步?
- python - 正则表达式中的正前瞻和负后瞻
- javascript - 目的是什么 usage in Vuetify?
I want to use Vuetify 2.0 in my project and currently reading about v-stepper component which is used to display progress throu
- flutter - _AssertionError('package:firebase_auth/src/firebase_auth.dart':断言失败:第 95 行 pos 12:'email != null':不正确。)
- javascript - 当另一个字段的值等于某个值时,我想将一个表单字段替换为另一个