This is blogspam, but in case people come here because the title sounds interesting, check out text-generation-webui (https://github.com/oobabooga/text-generation-webui). It's a better solution to local LLMs than running in a Jupyter Notebook.
Want to Know about, How to run Open Source LLMs in Jupyter Notebook, Checkout this Blog Post.