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中显示图像和数学公式相关推荐

  1. ipython jupyter区别_ipython jupyter notebook中显示图像和数学公式实例

    1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...

  2. python 数学公式显示_ipython jupyter notebook中显示图像和数学公式实例

    1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...

  3. jupyter ipython display_ipython jupyter notebook中显示图像和数学公式实例

    1. # 可以使用LaTeX表示数学公式 # 可以使用LaTeX表示数学公式 from IPython.display import Latex Latex(r"$\sqrt{x^2+y^2 ...

  4. pandas使用set_table_attributes函数、display_html函数等在jupyter notebook中并排显示两个dataframe的内容(side by side)

    pandas使用set_table_attributes函数.display_html函数等在jupyter notebook中并排显示两个dataframe的内容(side by side) 目录

  5. Jupyter Notebook中cell操作

    Jupyter Notebook中cell操作 cell:一对In Out会话被视作一个代码单元,称为cell Jupyter有三种cell类型: Code(编辑代码,运行后显示代码运行结果) Mar ...

  6. jupyter notebook中执行命令报错No module named ‘wordcloud‘

    from wordcloud import WordCloud cloud = WordCloud(width=1440, height=1080).generate(" ".jo ...

  7. 如何在Jupyter notebook中运行python的.py文件,以及ipynb文件与py文件的相互转化

    文章目录: 1 Jupyter notebook中%开头的一些方法使用 1.1 运行python的py文件 1.2 加载本地文件 2 ipynb文件与py文件的相互转化 2.1 jupyter not ...

  8. jupyter notebook中忽略所有警告,让页面更整洁

    jupyter notebook 中忽略所有警告 import warnings warnings.filterwarnings("ignore")

  9. 如何在Jupyter Notebook中使用在anaconda中创建的虚拟环境

    如何在Jupyter Notebook中使用在anaconda中创建的虚拟环境 1.创建虚拟环境并激活 conda create -n 虚拟环境名 python = 3.8 conda activat ...

最新文章

  1. awk 添加自定义变量
  2. centos7挂载windows共享文件夹
  3. VTK:Utilities之CustomDenseArray
  4. python创建和控制的实体称为_Python语法基础
  5. 计算机对口高考文化试卷,计算机对口高考模拟试卷
  6. c++99乘法表_nine-nine table 不是“99张桌子”,理解错了数学老师会打你!
  7. oracle 感叹号,Oracle错误案例:ORA-00922
  8. 爬虫抓包,模拟提交、Fiddler和Postman结合Chrome的使用
  9. Google Hack 最新版
  10. 守护线程Deamon
  11. 键鼠共享软件分享,让你一套键鼠控制多台设备(多平台)
  12. Windows无法连接到无线网络
  13. 讲一下 SVG... 吧
  14. 人体骨骼关键点检测综述
  15. Win10 按键精灵 抓不到正确坐标的解决办法
  16. Hive sql 常用命令2
  17. 鹏业云计价i20(四川)CJZ阅读模式功能
  18. python 输入5*5矩阵a、完成下列要求_python编程练习(五)
  19. 手写迷你版HashMap
  20. PHPstudy之PHP探针的查找

热门文章

  1. 有关SwfUpLoad的2038 错误
  2. Leangoo 6.2.7 版发布
  3. 【硬核】秒杀活动技术方案,Redis申请32个G,被技术总监挑战了...
  4. 秒杀系统怎么设计?8张图带你搞定!
  5. 百亿估值的Databricks,到底是做什么的?
  6. Redis、Kafka 和 Pulsar 消息队列对比,写得太好了!
  7. Arthas 实践——生产环境排查 CPU 飚高问题
  8. 万字长文,最硬核的mysql知识总结
  9. 掌握它才说明你真正懂 Elasticsearch
  10. 分享10个效率实用工具,让你更优雅地使用windows