password on jupyter notebook (docker)

4 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 'jupyter-notebook --ip='

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

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


Unfortunately, when I tried doing something similar with fenics<mytoken>​

This did not work either.  I just wanted to share what I think should work but also doesn't.  
written 4 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.<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 4 months ago by Francis Poulin  

2 Answers

4 months ago by
I have added better instructions here:

Key thing is to find out the access token. The access token is a unique string for each instantiation of the Jupyter notebook.
4 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 »