jupyter notebook常见知识点与问题汇总

1. 部分快捷键

2. 如何解决jupyter notebook 画图不显示

其实出现在个问题很简单,只需要在你的程序中加一行代码就行了:

%matplotlib inline

而%matplotlib具体作用是当你调用matplotlib.pyplot的绘图函数plot()进行绘图的时候,或者生成一个figure画布的时候,可以直接在你的python console里面生成图像。

3. jupyter报错: super(type, obj): obj must be an instance or subtype of type.

一种可能发生此错误的方式是在Jupyter notebook中重新加载带有该类的模块。简单的解决方案是重新启动内核。


参考:

  1. Python super()行为不可靠
  2. super(type, obj): obj must be an instance or subtype of type

4. NameError: name ‘exit’ is not defined


参考:

  1. NameError: name ‘exit’ is not defined
  2. name exit is not defined in python
  3. pyinstaller fails to recognise the keyword exit() #1687
  4. NameError: name ‘exit’ is not defined
全部评论

相关推荐

昨天 12:15
门头沟学院 运营
投递字节跳动等公司8个岗位
点赞 评论 收藏
分享
自学java狠狠赚一...:骗你点star的,港卵公司,记得把star收回去
点赞 评论 收藏
分享
不多说了,看图吧
MomonKa:实际上是,机房机器有些高度,问问你身高,有没有女朋友是看你能不能猛猛加班
你最讨厌面试问你什么?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务