question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Guidance on styling/branding interfaces: jupyterhub, jupyterlab, etc.

See original GitHub issue

Update by Erik - 2021-10-25

It would be good to have some references to how to brand/style the JupyterHub websites (/hub prefixed urls), as well as some notes on the complexity about styling the user facing UIs (/user prefixed urls). But we probably should not go further than some pointers as it would be too hard to maintain detailed steps in this repo. Currently we have https://github.com/jupyterhub/the-littlest-jupyterhub/issues/434#issuecomment-574159678 that represents the best available documentation notes within this github repo.

Relevant things to cover

  • Permissions on JupyterHub templates, the JupyterHub process will read them, so that would be the jupyterhub user right?
  • Link out to docs on how to configure JupyterHub’s look/templates
  • Link out to docs on how to configure user interfaces running in the user server if there are such docs for JupyterLab or the classical Notebook interface etc.

Related issues

  • #220 (closed in favor of this)
  • #512 (closed in favor of this)
  • #669 (closed in favor of this)

Original issue

I’ve had jupyterhub deployed before with a login template using the “c.JupyterHub.template_paths=[‘.’]” in jupyterhub_config.py. But how does one use templates in TLHJ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vsislcommented, Nov 5, 2021

I just got started with TLJH (and JupyterHub in general). I would appreciate guidance on some very simple customisation. Basically all I wish for is to:

  1. Customize the jupyterhub brand to something like ‘MyCompanyHub’
  2. Customize the logo

image

I believe that most users would be happy with this level of customisation.

Not sure how difficult it would be to create and maintain such instructions.

Thanks for all your development effort. Setting up TLJH was amazingly simple and it works like a charm!

1reaction
GeorgianaElenacommented, Jan 14, 2020

Hey @Adrast, @flavionc 🌞 Sorry for the late reply.

The way to customize TLJH bits that are not supported through tljh-config is using custom jupyterhub_config.py snippets

  1. Create a .py file (with whatever name you want) in /opt/tljh/config/jupyterhub_config.d. In that file add:
    c.JupyterHub.template_paths=['/absolute/path/to/your/template']
    
    For example, if your custom login template (login.html - extending templates/login.html) is in the same directory as your config snippet, it would look something like this:
    c.JupyterHub.template_paths=['/opt/tljh/config/jupyterhub_config.d']
    
  2. Load the new configuration:
     sudo tljh-config reload
    
Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterLab on JupyterHub
JupyterLab works out of the box with JupyterHub 1.0+, and can even run side by side with the ... To change the user's...
Read more >
JupyterHub: A Practical Guide - Run:AI
Learn how JupyterHub works in depth, see two quick deployment tutorials, and learn to configure the user environment.
Read more >
JupyterLab Default Interface - ENGR114-JupyterHub ...
# /etc/jupyterhub/jupyterhub_config.py ... # Start Users at the JupyterLab Interface c.Spawner.default_url = '/lab' ... That's it. It's that easy to switch ...
Read more >
User-Guide - Jupyter integration - Ploomber documentation
This guide is applicable if running JupyterLab >=2.x . ... check out the Other editors (VSCode, PyCharm, etc.) guide. Ploomber integrates with Jupyter...
Read more >
19 Best JupyterLab Extensions for Machine Learning
It helps to collaborate between jupyter notebook and tensorboard (a visualization tool for tensorflow) by providing a graphical user interface for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found