DonJayamanne / vscodeJupyter

Jupyter for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter
MIT License
336 stars 34 forks source link

Cant run on vscode but inside browser works finely #142

Closed timinGo closed 6 years ago

timinGo commented 6 years ago

Environment data

VS Code version: 1.28.2 Jupyter Extension version: 1.1.4 OS and version: MacOX 10.14

Logs

Output from Jupyter output panel

(Error: connect ECONNREFUSED 127.0.0.1:80
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14))

Output from Console window (Help->Developer Tools menu)

[C 21:18:25.551 NotebookApp] received signal 15, stopping
[I 21:18:25.553 NotebookApp] Shutting down kernels
Starting Jupyter Notebook
jupyter notebook --no-browser --port=8888 --NotebookApp.allow_origin="*"
[I 21:18:26.934 NotebookApp] Serving notebooks from local directory: /Users/jiachen/Documents/CUHK/Operational Risk Management_tex
[I 21:18:26.934 NotebookApp] 0 active kernels 
[I 21:18:26.934 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=0b3bfe199e72b5ec6e052c48a1eb78234f92a471076d79dd
[I 21:18:26.934 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:18:26.935 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=0b3bfe199e72b5ec6e052c48a1eb78234f92a471076d79dd
[I 21:18:50.226 NotebookApp] 302 GET /api/kernelspecs?1540559930220 (127.0.0.1) 1.14ms
[I 21:19:08.299 NotebookApp] 302 GET /?token=0b3bfe199e72b5ec6e052c48a1eb78234f92a471076d79dd (::1) 0.39ms
[I 21:19:22.505 NotebookApp] 302 GET /api/kernelspecs?1540559962497 (127.0.0.1) 0.85ms
[I 21:19:23.975 NotebookApp] 302 GET /api/kernelspecs?1540559963972 (127.0.0.1) 1.16ms
[I 21:24:00.287 NotebookApp] 302 GET /api/kernelspecs?1540560240284 (127.0.0.1) 0.80ms

Actual behavior

Codes can be run in browser with the link given in terminal ''' http://localhost:8888/?token=52df41bf598c0a16ddf468a0bb2fe391542d1309e289749e ''' Codes can not be run in vscode jupyter reported as ECONNREFUSED

Expected behavior

Steps to reproduce:

-