Jupyter Notebook中显示图像和数学公式
1. 可以使用LaTeX表示数学公式
# 可以使用LaTeX表示数学公式
from IPython.display import Latex
Latex(r"$\sqrt{x^2+y^2}$")
2. SymPy的表达式也可以显示为LaTex
%load_ext sympyprinting
from sympy import *
x, y = symbols("x,y")
sqrt(x**2+y**2)
3. 用Image类显示”jupyter.png”图片,缺省路径为Notebook文件所在的目录
from IPython.display import Image
Image(filename="jupyter.png")
4. 使用matplotlib绘图
%matplotlib inline
plot(random.randn(100));
5. %prun用于代码的执行性能分析,可以作为行命令和单元命令使用
%%prun
for i in range(100):np.linalg.det(random.rand(10,10))
参考:
https://blog.csdn.net/halazi100/article/details/79704631
Jupyter Notebook中显示图像和数学公式相关推荐
- ipython jupyter区别_ipython jupyter notebook中显示图像和数学公式实例
1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...
- python 数学公式显示_ipython jupyter notebook中显示图像和数学公式实例
1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...
- jupyter ipython display_ipython jupyter notebook中显示图像和数学公式实例
1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...
- pandas使用set_table_attributes函数、display_html函数等在jupyter notebook中并排显示两个dataframe的内容(side by side)
pandas使用set_table_attributes函数.display_html函数等在jupyter notebook中并排显示两个dataframe的内容(side by side) 目录
- Jupyter Notebook中cell操作
Jupyter Notebook中cell操作 cell:一对In Out会话被视作一个代码单元,称为cell Jupyter有三种cell类型: Code(编辑代码,运行后显示代码运行结果) Mar ...
- jupyter notebook中执行命令报错No module named ‘wordcloud‘
from wordcloud import WordCloud cloud = WordCloud(width=1440, height=1080).generate(" ".jo ...
- 如何在Jupyter notebook中运行python的.py文件,以及ipynb文件与py文件的相互转化
文章目录: 1 Jupyter notebook中%开头的一些方法使用 1.1 运行python的py文件 1.2 加载本地文件 2 ipynb文件与py文件的相互转化 2.1 jupyter not ...
- jupyter notebook中忽略所有警告,让页面更整洁
jupyter notebook 中忽略所有警告 import warnings warnings.filterwarnings("ignore")
- 如何在Jupyter Notebook中使用在anaconda中创建的虚拟环境
如何在Jupyter Notebook中使用在anaconda中创建的虚拟环境 1.创建虚拟环境并激活 conda create -n 虚拟环境名 python = 3.8 conda activat ...
最新文章
- awk 添加自定义变量
- centos7挂载windows共享文件夹
- VTK:Utilities之CustomDenseArray
- python创建和控制的实体称为_Python语法基础
- 计算机对口高考文化试卷,计算机对口高考模拟试卷
- c++99乘法表_nine-nine table 不是“99张桌子”,理解错了数学老师会打你!
- oracle 感叹号,Oracle错误案例:ORA-00922
- 爬虫抓包,模拟提交、Fiddler和Postman结合Chrome的使用
- Google Hack 最新版
- 守护线程Deamon
- 键鼠共享软件分享,让你一套键鼠控制多台设备(多平台)
- Windows无法连接到无线网络
- 讲一下 SVG... 吧
- 人体骨骼关键点检测综述
- Win10 按键精灵 抓不到正确坐标的解决办法
- Hive sql 常用命令2
- 鹏业云计价i20(四川)CJZ阅读模式功能
- python 输入5*5矩阵a、完成下列要求_python编程练习(五)
- 手写迷你版HashMap
- PHPstudy之PHP探针的查找