【问题标题】:Jupyter notebook error while saving / pandas python保存 / pandas python 时出现 Jupyter 笔记本错误
【发布时间】:2021-08-17 16:43:51
【问题描述】:

我在尝试保存我的 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)

感谢和问候,

【问题讨论】:

    标签: python pandas jupyter-notebook jupyter


    【解决方案1】:

    看看这里:

    Jupyter Notebook 500 : Internal Server Error

    尤其是 mikus 回答:

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

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

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

    【讨论】:

      猜你喜欢
      • 2019-07-28
      • 2021-09-25
      • 2015-05-23
      • 2020-05-24
      • 2016-05-26
      • 2021-02-13
      • 1970-01-01
      • 2022-08-16
      • 1970-01-01
      相关资源
      最近更新 更多