How to use the Jupyter Notebook Viewer
- 1. Choose the .ipynbA notebook from a course, Kaggle, GitHub or a classmate.
- 2. View itCells appear in order with In [n] and Out [n] labels.
- 3. Export if neededDownload the code as a .py file with # %% cell markers.
What the viewer shows
A Jupyter notebook is a JSON file holding a list of cells and the outputs saved when it was last run. The viewer reads that file in your browser and shows:
- Markdown cells: headings, bold and italic text, lists, tables, links and code blocks.
- Code cells with their execution numbers, so you can see the order they were run in.
- Text outputs from print(), errors with colour codes removed, pandas tables (HTML output) and charts saved as PNG, JPEG or SVG images.
HTML outputs are shown inside a locked frame with scripts switched off, so a notebook can't run code on this page. Images that Markdown links to on other websites are not loaded and show as labels. Interactive widgets and JavaScript outputs need a live Jupyter kernel and are not shown.
Worked example
Press Load sample notebook, then View notebook. The sample, marks-analysis.ipynb, has 5 cells: 4 code and 1 markdown, with 3 outputs (1 error). You see the Markdown title and list, a DataFrame of three students shown as a table, the printed line "Average: 84.33", and a KeyError for the missing grade column, just as the notebook's author saw it.
The Download button turns the notebook into a .py script. Each cell starts with # %% and Markdown becomes comments, a format that VS Code and PyCharm can run cell by cell. This is handy for code review, Git diffs or moving work out of notebooks into a project.
The viewer does not run code, so the outputs are exactly what was saved. To run Python, use the Python online compiler.
Frequently asked questions
Can it run the notebook?
No. It shows saved outputs only. Run notebooks in Jupyter, VS Code or Google Colab.
Is my notebook uploaded?
No. The file is read and displayed in your browser.
Why does it say old format?
Notebooks from before 2015 use format v3. Open and save them once in a current Jupyter to upgrade them to v4.
Do I have to pay for the jupyter notebook viewer?
No, it is free. Viewing your first notebook asks for your name and WhatsApp number one time only. Then the jupyter notebook viewer and all other Uncodemy tools stay open for you with no form.