-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Can't set icon for launcher if it isn't in category 'Notebooks' #5822
Comments
You should be able to set an icon by adding an jupyterlab/packages/terminal-extension/src/index.ts Lines 200 to 229 in 3044387
We typically make a CSS class with the desired image as a background image. For some history: the launcher used to have its own |
Also to be filed under: we need better narrative documentation 🙁 |
@ian-r-rose thank you! Hmm, now I wonder - I'm constructing these launcher items dynamically (from fetching a remote URL), and won't know what should be in the CSS before. Should I just dynamically generate the CSS required and apply it? |
Ooh, tricky. I suppose dynamically generating CSS would be the best way forward; I can't really think of a better approach. |
I'm trying to add launcher entries (for launching RStudio / Shiny / etc) into the JupyterLab launcher.
If I do:
I don't get a launcher icon - just blank space.
If I do:
I do get a launcher icon. It looks like the code is checking if the launcher is a 'kernel' by seeing if it is in the Notebook / Console category and honoring kernelIconUrl only then?
The text was updated successfully, but these errors were encountered: