password on jupyter notebook (docker)


827
views
1
7 months ago by
I am new to using Fenics in Docker but I a making the transition.  The problem that I am having now is how to run a jupyter notebook.  What I have tried is the following:

1) I do what is suggested in the documentation:

docker run --name notebook -w /home/fenics -v $(pwd):/home/fenics/shared -d -p 127.0.0.1:8888:8888 quay.io/fenicsproject/stable 'jupyter-notebook --ip=0.0.0.0'

2) I type this address into my browser (chrome or firefox)

http://127.0.0.1:8888/

3) I copy in the token that I received in part 1 and it says invalid password.


I am sorry for not figuring this out but I have tried a variety of things and not having much luck. Any suggestions of things to try would be greatly appreciated.
Community: FEniCS Project
I found another cite that looks like it could be helpful.

Useful link

When I followed the instructions to pull and then run docker, that worked out okay and then told me exactly what I needed to do to view the notebook

http://localhost:8888/?token=7b600e7c4209f61557b0a2d6ee58545f141f113d16ef9875

Unfortunately, when I tried doing something similar with fenics

http://127.0.0.1:8888/?token=<mytoken>​


This did not work either.  I just wanted to share what I think should work but also doesn't.  
written 7 months ago by Francis Poulin  
I tried something else that *should* work.

fenicsproject notebook my-project1
fenicsproject start my-project1

This was kind enough to spit out something I should paste in my browser to view the notebook. 

http://0.0.0.0:8888/?token=<mytoken>

When I did this it still asked me for a token, which I have not set.

Any ideas as to what I might try would be greatly appreciated.
written 7 months ago by Francis Poulin  

2 Answers


1
7 months ago by
I have added better instructions here:

https://fenics.readthedocs.io/projects/containers/en/latest/jupyter.html

Key thing is to find out the access token. The access token is a unique string for each instantiation of the Jupyter notebook.
0
7 months ago by
Thank you!  I am happy to say that works beautifully.

I am also very happy that you updated the documentation.  That will make it easier for other novices like myself to figure this out.
Please login to add an answer/comment or follow this question.

Similar posts:
Search »