singnet / opencog-tutorials

MIT License
1 stars 3 forks source link

The jupyter kernel opens an empty folder #17

Open hilenamin opened 5 years ago

hilenamin commented 5 years ago

After creating the image on my PC and running

docker-compose -f opencog-jupyter.yml run --service-ports notes

and after creating jupyter kernel login, we just get empty notebook with no folders or anything else.

[I 06:32:01.246 NotebookApp] Writing notebook server cookie secret to /home/opencog/.local/share/jupyter/runtime/notebook_cookie_secret
[I 06:32:01.483 NotebookApp] Serving notebooks from local directory: /opencog/notebooks
[I 06:32:01.483 NotebookApp] The Jupyter Notebook is running at:
[I 06:32:01.483 NotebookApp] http://(3f1a8cc63365 or 127.0.0.1):8888/?token=f03cea91454c95b94fc731fcf0e087a0c44ba03788fc78e3
[I 06:32:01.483 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 06:32:01.484 NotebookApp] No web browser found: could not locate runnable browser.
[C 06:32:01.484 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://(3f1a8cc63365 or 127.0.0.1):8888/?token=f03cea91454c95b94fc731fcf0e087a0c44ba03788fc78e3
[I 06:32:58.580 NotebookApp] Malformed HTTP message from 172.18.0.1: Malformed HTTP headers: ''
[I 06:33:17.431 NotebookApp] 302 GET / (172.18.0.1) 1.18ms
[I 06:33:17.435 NotebookApp] 302 GET /tree? (172.18.0.1) 1.41ms
[I 06:33:36.887 NotebookApp] 302 POST /login?next=%2Ftree%3F (172.18.0.1) 1.85ms
^C[I 06:33:47.349 NotebookApp] interrupted

I have setted up the variables

HilenMacProSNET:opencog hiami$ echo $OPENCOG_NOTEBOOKS 
/Users/hiami/opencog-notebooks
andre-senna commented 5 years ago

@hilenamin replacing the environment variable by a hardcoded path here:

https://github.com/opencog/docker/blob/master/opencog/opencog-jupyter.yml#L17

fixed this problem for me.