Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unreadable Notebook: /home/kerwin/test2/test.ipynb AttributeError('metadata',) in Pycharm

I want to use Jupyter notebook for Data Analysis. When I follow the guide which is provided by jetbrains in: Tutorial: Using IPython/Jupyter Notebook with PyCharm.
1. My working environment is Ubunutu I have install all the package: anaconda and jupyter
2. When I just test it like :
```python

In[]: print 'hello world!'

``` There are some errors:

[W 23:13:33.681 NotebookApp] Unrecognized JSON config file version, assuming version 1
[E 23:13:33.690 NotebookApp] [nb_conda_kernels] couldn't call conda:
    [Errno 2] No such file or directory
[I 23:13:33.691 NotebookApp] [nb_conda_kernels] enabled, 0 kernels found
[I 23:13:34.381 NotebookApp] ✓ nbpresent HTML export ENABLED
[W 23:13:34.382 NotebookApp] ✗ nbpresent PDF export DISABLED: No module named nbbrowserpdf.exporters.pdf
[I 23:13:34.385 NotebookApp] [nb_conda] enabled
[I 23:13:34.598 NotebookApp] [nb_anacondacloud] enabled
[I 23:13:34.612 NotebookApp] Serving notebooks from local directory: /home/kerwin/test2
[I 23:13:34.613 NotebookApp] 0 active kernels 
[I 23:13:34.613 NotebookApp] The Jupyter Notebook is running at: http://127.0.0.1:8888/
[I 23:13:34.613 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 23:13:35.433 NotebookApp] Kernel started: 19c9b3d5-1c14-4487-bed0-aa351295467a
[W 23:13:35.464 NotebookApp] No session ID specified

Althoungh it have content in http://127.0.0.1:8888/, but it just say: Unreadable Notebook: /home/kerwin/test2/test.ipynb AttributeError('metadata',)

Before I tried like:
```

conda update nb_conda nb_conda_kernels nb_anacondacloud

``` But there are still problems.

Can you help me? Thanks!

like image 469
Kerwin Xiao Avatar asked Aug 31 '16 07:08

Kerwin Xiao


People also ask

Can I run Jupyter Notebook in PyCharm?

In PyCharm, create a new Python project. Install the jupyter package for the selected interpreter. When all the indexing processes are finished, you are ready to start working with the notebook files.

How do I debug a Jupyter Notebook in PyCharm?

Debug code in Jupyter notebooksSet the breakpoints in the selected cell and press Alt + Shift + Enter for Windows or ⌥⇧↩ for macOS. Alternatively, you can right-click the cell and select Debug Cell from the context menu.


1 Answers

I had the same issue. You should use save and checkout after editing on Pycharm. And then run.

like image 170
wyx Avatar answered Sep 30 '22 22:09

wyx