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
全部评论

相关推荐

27届学院本誓死冲击...:自我评价和校园经历全删了,荣誉经历只留奖学金,项目也全得换都不如外卖
点赞 评论 收藏
分享
牛客52811839...:实习要写出来业务和产出,你这写的像流水账没人看。项目经历也没有,换个极简简历试试
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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