as of now (nbconvert version 5.6.0) the easiest solution seems to be to provide the argument --no-input when using the CLI interface of nbconvert:

jupyter nbconvert yourNotebook.ipynb --no-input

it works like magic more info here

Answer from vincentVega on Stack Overflow
🌐
GitHub
github.com › jupyter › nbconvert
GitHub - jupyter/nbconvert: Jupyter Notebook Conversion · GitHub
This command creates an HTML output file named mynotebook.html. Check if pandoc is installed (pandoc --version); if needed, install: ... Community Technical Support and Discussion - Discourse: A place for installation, configuration, and troubleshooting assistannce by the Jupyter community. As a non-profit project and maintainers who are primarily volunteers, we encourage you to ask questions and share your knowledge on Discourse. ... The Jupyter Development Team is the set of all contributors to the Jupyter project.
Starred by 1.9K users
Forked by 611 users
Languages   Python 51.5% | Jupyter Notebook 37.9% | Jinja 10.3% | CSS 0.2% | Makefile 0.1% | Go Template 0.0%
🌐
Runcell
runcell.dev › tool › ipynb-to-html
Jupyter Notebook to HTML Converter
This IPYNB to HTML converter operates entirely client-side in your web browser. No Jupyter installation, Python environment, or server dependencies are needed. The converter parses your IPYNB file's JSON structure directly in JavaScript, maintaining all code cells, markdown formatting, and execution outputs. This makes it perfect for quick conversions when you're on a machine without a Python environment or when you need to share notebooks with non-technical team members.
Discussions

python - Hide Code when exporting Jupyter notebook to HTML - Stack Overflow
This will convert the Jupyter notebook to html with all the cells aligned to right. ... I have tried and it creates an html file but empty, without content. What can be the cause? 2021-08-24T17:10:43.627Z+00:00 ... Save this answer. ... Show activity on this post. I finaly found that : https://pypi.org/project/hide_code... More on stackoverflow.com
🌐 stackoverflow.com
python - export notebook to pdf without code - Stack Overflow
I have a large notebook with a lot of figures and text. I want to convert it to a html file. However, I don't want to export the code. I am using the following command ipython nbconvert --to html More on stackoverflow.com
🌐 stackoverflow.com
Programmatically Export to HTML from Within Notebook With Custom Output Path
I have a use case in which I have a notebook intended for use by non-programmers. All they have to do is make sure all of the cells run. I’d like to get the last cell to write an HTML copy of the notebook to disk without the user needing to modify anything in the cell. More on discourse.jupyter.org
🌐 discourse.jupyter.org
3
0
February 26, 2022
nbconvert - Convert jupyter notebook to html without css - Stack Overflow
I was wondering if it was possible to convert a notebook to html without the default css, or at least reduce it. I used jupyter nb-convert --to html filename.ipynb This currently generates 11k lin... More on stackoverflow.com
🌐 stackoverflow.com
March 4, 2018
🌐
nbconvert
nbconvert.readthedocs.io › en › latest › usage.html
Using as a command line tool — nbconvert 7.17.1 documentation
Simplified HTML, using the classic jupyter look and feel. ... Base HTML, rendering with minimal structure and styles. ... If this option is provided, embed images as base64 urls in the resulting HTML file. ... Latex export. This generates NOTEBOOK_NAME.tex file, ready for export.
🌐
MLJAR
mljar.com › blog › jupyter-notebook-html
The 3 ways to export Jupyter Notebook to HTML
July 27, 2022 - The convertion of the notebook ipynb file to html can be done with one command: ... The above command will create HTML file with name my-notebook.html. The big advantage of nbconvert over GUI apporach for downloading Jupyter Notebook as HTML is that we can easily select what parts of the notebook will be exported. For example, we can easily export only outputs of cell execution, so we will share in HTML only results (code will be not present in the HTML).
🌐
GitHub
gist.github.com › nile649 › 332104dddfdcc16be85a8b6caaa584f0
Convert IPYNB to HTML without code blocks. · GitHub
jupyter nbconvert --to html --template hidecode.tpl default.ipynb ... {%- extends 'full.tpl' -%} {% block input_group %} {%- if cell.metadata.get('nbconvert', {}).get('show_code', False) -%} ((( super() ))) {%- endif -%} {% endblock input_group ...
🌐
YouTube
youtube.com › watch
How to Convert Jupyter Notebook to HTML Easily (2024) - YouTube
In this video, I'll show you how you can convert Jupyter Notebook to HTML easily. Jupyter Notebook is a very popular web based too that allows you to create ...
Published   May 15, 2024
Find elsewhere
Top answer
1 of 6
89

I found this article interesting it explains how to remove the input columns :

you have to create a template file named "hidecode.tplx" in same directory as the notebook you want to convert and add those line in it :

    ((*- extends 'article.tplx' -*))

((* block input_group *))
    ((*- if cell.metadata.get('nbconvert', {}).get('show_code', False) -*))
        ((( super() )))
    ((*- endif -*))
((* endblock input_group *))

And after run this command it will use pdfLatex to convert the notebook in pdf via latex:

jupyter nbconvert --to pdf --template hidecode Example.ipynb

or if you want to edit you can convert it to a .tex document and use pdfLatex to put it in pdf :

jupyter nbconvert --to latex --template hidecode Example.ipynb

EDIT Sept 2018:

ipython nbconvert is deprecated. It will be replaced by jupyter nbconvert: So we replace the command ipython with jupyter

EDIT Feb 2021: (This is my best answer here, so let me take care of it)

Following @Mrule comment adding --no-input flag will make it work without the template...

jupyter nbconvert --to latex --no-input Example.ipynb 

PS: If you are getting issue saying :

LaTeX error related to tcolorbox.sty not found

Please refer to this guide to update your tex installation and this question

2 of 6
46

I was seeking the same question in SO and finally turned out to a very straightforward way:

Assuming using Firefox(57) + Win7

  1. Run Jupyter notebook and download the notebook in the browser: File->Download as->HTML and you will get a html page with code and output.
  2. Open the exported HTML with browser and activate the browser console with key F12
  3. Run following command in the console:

    document.querySelectorAll("div.input").forEach(function(a){a.remove()})
    
  4. The code removes all input div DOM. Then right mouse button and chose "Save Page As" and Save the "Complete page" (not single page).

  5. You will get a page with an associated folder in windows. Use a trick by zip the html page and then extract to unbind the associated. The folder is useless.

  6. Now it is a single html page without code. You can re-distribute it or print it as PDF.

If you are not using Firefox or Windows, please adjust the above 3-6 steps.

🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterlab
Programmatically Export to HTML from Within Notebook With Custom Output Path - JupyterLab - Jupyter Community Forum
February 26, 2022 - I have a use case in which I have a notebook intended for use by non-programmers. All they have to do is make sure all of the cells run. I’d like to get the last cell to write an HTML copy of the notebook to disk without…
🌐
Stack Overflow
stackoverflow.com › questions › 49089091 › convert-jupyter-notebook-to-html-without-css
nbconvert - Convert jupyter notebook to html without css - Stack Overflow
March 4, 2018 - Wow, I've never looked at one of those converted files! There are some interesting design decisions there. They include the entire bootstrap library non-minified, yet reference jquery on a cdn... ... I can't seem to find a clean way to do this. You'll probably have to manually edit the generated file and drop in your own css - or script that edit. Note there is some chatter about changing to a CDN here: github.com/jupyter/nbconvert/issues/752
🌐
Vertopal
vertopal.com › en › convert › ipynb-to-html
Online IPYNB (Jupyter Notebook) to HTML Converter - Vertopal
Several browser-based converters ... for quick sharing or embedding in web platforms. Use Vertopal CLI to process IPYNB (Jupyter Notebook) document and export as HTML document....
🌐
nbconvert
nbconvert.readthedocs.io
nbconvert: Convert Notebooks to other formats — nbconvert 7.17.1 documentation
Primarily, the nbconvert tool allows you to convert a Jupyter .ipynb notebook document file into another static format including HTML, LaTeX, PDF, Markdown, reStructuredText, and more.
🌐
Saturn Cloud
saturncloud.io › blog › how-to-export-current-notebook-in-html-on-jupyter
How to Export Current Notebook in HTML on Jupyter | Saturn Cloud Blog
January 3, 2024 - You should be able to see your notebook with all its code, visualizations, and text rendered in HTML format. If you don’t have nbconvert installed, you can install it using the following command in your terminal or command prompt: ... Open a terminal or command prompt and navigate to the directory where your Jupyter notebook is located. Use the following command to convert ...
🌐
University of Illinois at Urbana-Champaign
courses.physics.illinois.edu › phys213 › fa2020 › html-embed-export-tutorial.pdf pdf
Exporting a Jupyter Notebook to HTML with Embedded Images
Find the last cell in your notebook and click in the margin to the left of it. This selects the cell without · selecting the text in it. Then, press the "b" key. This creates a new cell below. Make sure the type of the new cell is set to "Code" in the toolbar (not "Markdown"), and then enter ...
🌐
Runcell Blog
runcell.dev › blog › nb-convert-tutorial
Jupyter nbconvert: Convert Notebooks to HTML, PDF & Python – Runcell Blog
October 24, 2025 - Jupyter nbconvert lets you export .ipynb notebooks to HTML, PDF, Python scripts, Markdown, slides, and more — directly from the command line. This guide covers every format with copy-paste commands and real-world examples. Jupyter notebooks are fantastic for exploratory work, but eventually you need to share results or reuse your code outside the interactive environment.
🌐
Jupyter Community Forum
discourse.jupyter.org › jupyterlab
Exporting a notebook as html_toc with a sidebar table of contents - JupyterLab - Jupyter Community Forum
January 19, 2024 - Is there a way to export an html with a table of contents (html_toc) using jupyter lab desktop where the table of contents is fixed on the side of the document, like in previous jupyter notebook instances (and like it is…
🌐
Julia Programming Language
discourse.julialang.org › tooling › vs code
VSCode... export Jupyter Notebook as HTML - VS Code - Julia Programming Language
March 5, 2024 - In the past, I could export Jupyter Notebooks as HTML in the following way: Click on the dots at the RHS of the notebook menu Choose Export Choose …as HTML This opened the file browser, and one could choos…