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?

drevicko
  • 14,382
  • 15
  • 75
  • 97
  • 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 `` tag for the logo. – drevicko Jun 11 '18 at 15:48

1 Answers1

0

most flexible would be:

import socket
print(socket.gethostname())

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

Oliver Prislan
  • 320
  • 4
  • 12
  • A link would be handy. I believe the answer to which you are referring is here: https://stackoverflow.com/a/4271755 – AverageHelper Sep 12 '20 at 23:53
  • 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. – Yunnosch Sep 28 '20 at 17:27