4

I frequently run jupyter notebook on multiple servers/computers, and it would be great if the interface could be customised so I can see at a glance which server/computer is behind the notebook GUI I'm looking at.

Is there a setting for adding a short piece of text to the title bar in the web interface? Can someone suggest a snippet of code to put in jupyter_notebook_config.py?

1
  • I found a hacky workaround: edit the file templates/page.html (in my case it was in ~/anaconda3/lib/python3.6/site-packages/notebook/), look for 'logo.png' and add your text to the html. I chose to add it just before the <a ...> tag for the logo. Commented Jun 11, 2018 at 15:48

1 Answer 1

0

most flexible would be:

import socket
print(socket.gethostname())

answered in : How can I use Python to get the system hostname?

Sign up to request clarification or add additional context in comments.

2 Comments

A link would be handy. I believe the answer to which you are referring is here: stackoverflow.com/a/4271755
Please do not link to other answers without explaining why the question is different but the answer still helpful. If the question IS identical please flag as duplicate instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.