繁体   English   中英

保存时 Jupyter 笔记本出错 / pandas python

[英]Jupyter notebook error while saving / pandas python

我在尝试保存我的 jupyter 笔记本时遇到问题。

表明:

Unexpected error while saving file: notebook.ipynb HTTP 500: Internal Server Error (Couldn't save the `notebook)`

我的代码:

# Read in dataset
import pandas as pd
apps_with_duplicates = pd.read_csv("datasets/apps.csv")

# Drop duplicates from apps_with_duplicates
apps = apps_with_duplicates.drop_duplicates()

# Print the total number of apps
print('Total number of apps in the dataset = ', len(apps))

# Have a look at a random sample of 5 rows
n = 5
apps.sample(n)

感谢和问候,

看看这里:

Jupyter Notebook 500:内部服务器错误

尤其是 mikus 的回答:

$ pip install --upgrade jupyterhub
$ pip install --upgrade --user nbconvert

编辑: https://stackoverflow.com/a/36852617/16063775

sudo pip install --upgrade "ipython[all]"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM