Add a banner message to Jupyter Hub/Lab instances? - jupyter

I'd like to add a banner to every Jupyter instance that is spawned by my users via Jupyter Hub/Lab.
Something to the effect of Do not copy and paste code from the internet into this notebook.
How can I accomplish such a thing?
Thank you!

Related

Highlighting problem in Jupyter Notebook - VSCode

Lately when using Jupyter Notebook in VS Code to write some assignments for my studies I ran into a quite annoying problem - whenever there is a mistake in my code cell that prevents it from running, the "traceback" (or however you call it) to the place where the error persists is colored with a high-contrast marker (the color depends on the theme used) and makes the content pretty much invisible unless you manually "select" it with the mouse coursor. Is there any way I could fix it without going too much in-depth into VSCode/Jupyter Notebook extension settings?
The highlighting looks like shown below.
Yellow syntax marker problem.
And another one here.
I tried all the themes preinstalled with VS Code such as Monokai, Solarized Light etc., and also a custom theme of my choice called Dracula.
Thanks in advance.
This issue has recently reappeared. While the issue is being fixed you can change the highlight colour within the vscode settings.
Open settings and search for "Workbench:ColorCustomizations"
Image of settings page
Create or alter the "terminal.ansiYellow": "#eed202" to a more appropriate value like "terminal.ansiYellow": "#9b4550". See the linked image.
Credit for this fix: https://github.com/microsoft/vscode-jupyter/issues/8717#issuecomment-1241776226
I also have this problem. It looks like they fixed it less than 1 month ago as of writing this, so it may go away if you update to a recent pre-release of Jupyter in VS Code. Personally, I am going to live with it until the next stable release.
My version of Jupyter in VS Code:
Screenshot of Jupyter Versions
Screenshot of vscode-jupyter github: Screenshot of vscode-jupyter github
https://github.com/microsoft/vscode-jupyter/issues/8697

Notebook validation failed: Non-unique cell id 'hawaiian-pregnancy' detected. Corrected to '8fbbc816'.:

i have copied the notebook to create another version and all the time getting this strange errors, Does anyone have a clue how to get rid of it?
i have solved it with clicking "Trust" in jupyter notebook on the tool panel.
The best temporary solution so far is the following, from this GitHub issue:
First select all the cells in the Jupyter Notebook, then press the "cut/scissors" button (don't panic, at this point your Notebook will be empty), and finally press the "paste" button.

jupyter notebook display cells horizontal

I have issues on jupyter notebook conversion. It looks fine on jupyter notebook. However if I convert it to html or upload to github, it displays like photo above.
Instead of vertical(scroll up and down), I have to scroll left and right and each cell are really narrowed.
Any suggestion?
Thanks in advance!
This is typical of a library you use emitting invalid HTML. I would suggest opening an issue or contacting the Jupyter mailing list to help you debug this as StackOverflow will not be the right place to have a back and forth.
You should be able to narrow down which library does that by:
- backup your notebook.
- Delete cells one and until notebook looks normal. (tip use nbconvert locally instead of uploading, and use python -m http.server)
- the last cell you delete have a issue.
It may be a bug in nbconvert but I doubt it.

Extending Jupyter Notebook

I would like to extend jupyter by adding functionality, for instance comparing two notebooks, to a new tab like in the picture below. Is there any way to do it like this? Do you suggest any other way?
Thanks!!

Jupyter notebook - drop down code

I am doing a Udemy course using Jupyter Notebook. On the tutorial the tutor gets drop down "help" after writing code. On my version this doesn't happen. Any idea how I can activate this feature?
Press the Shift and the Tab key at the same time when the cursor is inside the parenthesis.