Set pre-run python codes when open a notebook
See original GitHub issueFeature Request 1 (already supported)
Allow local file path in piplite_urls
, so I can cache my private python package.
Feature Request 2 Run python codes defined in config everytime I opened a new notebook. This can be really good for cutomization, like pre-install some packages, ignore uncessary warnings, …
If you think these requests are resonable, I can help file a PR.
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
How to run Python code before every jupyter notebook kernel
Suppose I have a code snippet that I'd like to run every time I open a jupyter notebook (in my case it's opening...
Read more >How to set up a Python script to run in a Jupyter Notebook on ...
How to set up a Python script to run in a Jupyter Notebook on the cloud ... In it you will be able...
Read more >How to Execute python code on Jupyter Notebook ... - YouTube
This video will show you steps to use jupyter for executing python code.
Read more >Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >Live coding discussion - #116 by fmussari - Part 1 2022 - fast.ai ...
You need to open the pre-run.sh file and cd back to /notebooks at the end. It is all described at the beginning of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Supporting the IPython config would be nice indeed! Because we already use IPython it could possibly be done.
On another note, there is a PR related to this issue in replite: https://github.com/jtpio/replite/pull/24
Idly wondering about “JupyterLite-Binder” or “repo2jupyterlite” Github Action that could create a JupyterLite distribution from the contents of a repository and then publish it to Github pages, I note the repo2docker/configuration and repo2docker/config_files docs:
environment.yml
Pipfile
and/orPipfile.lock
requirements.txt
I also note that IPython supports environment configuration (IPython/config):
As already noted, IPython also supports startup files and it might make sense for a JupyterLite environment to support something similar, although perhaps with a warning (“Enable startup files: Y/N”) on first load: