如何解决将 Jupyter Notebooks 发布到 medium
我正在尝试使用 jupyter_to_medium 包在 Medium 上发布我使用 Jupyter Notebook 编写的文章。我已按照 here 中提到的所有步骤进行操作,包括将集成令牌保存在提到的文件夹中。但是,在将笔记本部署为中等帖子后,出现以下错误:
返回以下错误信息
"FileNotFoundError: [Errno 2] No such file or directory: 'xxxxx.ipynb'
Traceback (most recent call last):
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\nbformat\\__init__.py\",line 138,in read
buf = fp.read()
AttributeError: 'WindowsPath' object has no attribute 'read'
During handling of the above exception,another exception occurred:
Traceback (most recent call last):
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_bundler.py\",line 37,in upload
data = publish(**kwargs)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\",line 299,in publish
chrome_path,save_markdown,table_conversion)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\",line 41,in __init__
self.nb = self.get_notebook()
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\jupyter_to_medium\\_publish_to_medium.py\",line 76,in get_notebook
return nbformat.read(self.filename,as_version=4)
File \"C:\\Users\\xxxxx\\Anaconda3\\lib\\site-packages\\nbformat\\__init__.py\",line 140,in read
with io.open(fp,encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'xxxxx.ipynb'
"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。