Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter token setup / noise in terminal log from Jupyter server #169

Open
evalieungh opened this issue Mar 21, 2023 · 5 comments · May be fixed by #171
Open

Jupyter token setup / noise in terminal log from Jupyter server #169

evalieungh opened this issue Mar 21, 2023 · 5 comments · May be fixed by #171
Labels
enhancement New feature or request

Comments

@evalieungh
Copy link
Collaborator

When the LSP is running, the terminal window logs what is happening. But it keeps generating lines like these all the time, which makes it harder to see other more important messages that get buried after a short while. Can we suppress these messages somehow?

jupyter_1   | [I 2023-03-21 08:33:18.786 ServerApp] Generating new user for token-authenticated request: abeef8c68dfb4b5ab275e4ffbc1082fe
jupyter_1   | [I 2023-03-21 08:33:24.044 ServerApp] Generating new user for token-authenticated request: d05702c0535440afaebcdc9a4385a1dc
jupyter_1   | [I 2023-03-21 08:33:29.318 ServerApp] Generating new user for token-authenticated request: 34b633f5c51e40ef8e552daeeb74b6fa
jupyter_1   | [I 2023-03-21 08:33:34.623 ServerApp] Generating new user for token-authenticated request: ed416bdf011447f393a528575a265b9a
jupyter_1   | [I 2023-03-21 08:33:39.890 ServerApp] Generating new user for token-authenticated request: 2415d1cde2ec450e889af95c5fb4a2f7
@evalieungh evalieungh added the enhancement New feature or request label Mar 21, 2023
@evalieungh
Copy link
Collaborator Author

@daeh
Copy link

daeh commented Mar 27, 2023

@evalieungh there's an open issue on the jupyter server repo jupyter-server/jupyter_server#1245 (comment)

@evalieungh
Copy link
Collaborator Author

Thanks for linking this and taking it up with Jupyter directly, @daeh.

@evalieungh
Copy link
Collaborator Author

Quoting myself from the Jupyter issue: Hi! In the stackoverflow question, someone suggested setting LAB_TOKEN="test".
I just tried changing --LabApp.token='' to --LabApp.token='test' in my Dockerfile and then re-build the Jupyter container with docker-compose up --build, and it seems to fix the problem!

So this can be fixed with our Dockerfile for the Jupyter server, it seems.

@evalieungh evalieungh self-assigned this Mar 31, 2023
evalieungh added a commit that referenced this issue Mar 31, 2023
to fix #169 Noise in terminal from jupyter server.
@evalieungh evalieungh linked a pull request Mar 31, 2023 that will close this issue
@evalieungh evalieungh changed the title noise in terminal log from Jupyter server Jupyter token setup / noise in terminal log from Jupyter server Apr 24, 2023
@evalieungh
Copy link
Collaborator Author

New development: Not sure if everyone gets this, but when starting the jupyter server I now need to log in with a token or set up a password. Not sure how to do this, but guessing it should be coded into the LSP somehow:

image

@evalieungh evalieungh removed their assignment May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants