Executing .ipynb on github?

Is it possibe to run .ipynb file on Github instead of using jupyter notebook environment?

I’m not quite sure what you mean? Do you mean run them not using the Jupyter interface per se? Since you can use jupyter nbconvert or jupytext to execute notebooks on the command line, you can make GitHub actions that execute the notebook off in shell sessions by runners GitHub offers.
So … ‘yes’…

See here or here or here about GitHub Actions to run Jupyter .ipynb files.


I am able to view the .ipynb file on GitHub but I felt it would be much better if I could run the cells there itself instead of running them on Jupyter notebook environment.visual studio can run on GitHub why not .ipynb files?

Viewing a notebook on GitHub is only meant as a preview for developers. The Jupyter Community offers a more full-featured viewing tool nbviewer for sharing ‘static’ notebooks with non-developers.
Example from same source ‘static’ notebook: Plotly plots work via nbviewer pointed at the same notebook here that doesn’t render the plots at GitHub’s preview.)

And the Jupyter Community also offers ways to run a lot of notebooks just by clicking links you can have in GitHub READMEs. If you don’t need a lot of computational power, you can use MyBinder with a full ipykernel or JupyterLite that uses the pyodide kernel that is having less and less limits as it is developed. I know I have pointed you to examples of this for Voici and Voila in the past here.
You can look for the ‘launch binder’ badge on GitHub repos and click on them to see it run all sorts of content from a link at GitHub, such as here.
Next to the ‘launch binder’ badge there is an example of a ‘launch lite’ badge that ends up offering much the same but there isn’t a server running the code somewhere. Instead it is running inside your browser. You just get files like connecting to a normal static website but the active computation for the involved kernel in the Jupyter interface is done in your browser.
(Actually, that is old JupyterLite version; the newest version has significant improvements discussed here

I’m not sure what you mean by this section - Visual Studio Code running on GitHub. You just said you wanted to run code separate from the application environment and then you bring up an application environment running from a link?

Visual Studio Code is a Microsoft Product. Microsoft also owns GitHub that they are willing to support it running from links at GitHub to get you into their ecosystem as a paying customer.

And the picture you show is related to Google Colab and not GitHub. Google Colab is another offering to get you as a paying customer.

1 Like

visual studio can run on GitHub why not .ipynb files?
I was talking about the code space where we can run codes.I can run the .ipynb file there.

I thought that was already supported?
See GitHub Codespaces :heart: Jupyter Notebooks and maybe even better information at Jupyter notebooks on Codespaces

You should be able to use those approaches in some sort of console or command line access and then use jupyter nbconvert or jupytext to achieve “instead of running them on Jupyter notebook environment”, if that is your goal.

However, this is an premium offering from GitHub that costs real money and therefore you should be asking them for assistance and guidance.


Please read Getting good answers to your questions throughly and follow when considering posting here. No where in your first post was it clear you were speaking about GitHub Codespaces. And then in the screenshot you provide is simply the preview of a static notebook.
The last link there links to here that emphasizes ’ Search, and research’. Please read that and follow it.

1 Like

I saw some meeting link icon to call for a meeting it’s missing now.Is it possible to have meetings as well?

Given the title of this thread, do you mean a meeting with GitHub people? I have only ever dealt with them via submitting requests online.

The array of Jupyter Community Meetings offered is listed here. However, I don’t see how those meetings pertain to this thread topic.

It was showing a new icon to add an event.It’s not showing now.