Reputation: 175
D:\Python\python.exe "D:\PyCharm 2018.2.1\helpers\pycharm\pycharm_load_entry_point.py" notebook --no-browser --ip 127.0.0.1 --port 8886 --port-retries=0
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[W 17:58:52.576 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 17:58:52.579 NotebookApp] Serving notebooks from local directory: D:\Python projects\Projects
[I 17:58:52.579 NotebookApp] The Jupyter Notebook is running at:
Whenever I run a x.ipynb file it returns the error msg above, i can only access jupyter in browser. How can I run it within pycharm??
Upvotes: 2
Views: 4278
Reputation: 4289
You can use PyCharm as an IDE alternative for editing Jupyter notebooks in a browser, but it won't run a notebook server for you automatically. You can simply open *.ipynb file in PyCharm and it opens with a dedicated notebook editor. When you run a cell for the first time, it is going to ask you about the url of a running notebook, like http://localhost:8888/?token=<token>
You can get this url by running the following in a console:
jupyter notebook list
Running a notebook server is a separate thing. You can do it externally or use a built in 'Jupyer Notebook' run template (via 'Run...' menu'). When you start a server from inside PyCharm this way, you will get your notebook url in a run console.
Upvotes: 2