jupyter notebook是一个python的交互式开发环境,广泛应用于数据分析的场景下. 在jupyter notebook中,还可以很方便的编辑数学公式. 1.Markdown状态 编辑公式,首先要使单元成为Markdown状态. 2.公式的行内(inline)模式与显示(display)模式 公式的行内模式为$ 数学公式 $ ,公式将与前后的文字混排 一元一次方程:$ y = a + b x $ 显示结果: 显示模式为$$ 数学公式$$,公式将单独一行,如: 一元一次方程:$$ y
参考资料: https://www.jianshu.com/p/81ada9234788 https://my.oschina.net/u/2306127/blog/832510 首先,Cell and Line Magics是什么?最常见的就是%matplotlib inline和%%time了,功能大家应该都清楚.前者是控制直接在Jupyter console中绘图,而后者能够方便记录一个cell的运行时间,还有就是我经常直接在notebook中运行的pwd和ls.但直到今天我才知道这些奇妙