Python Forum
Save code with output to HTML file type
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Save code with output to HTML file type
#1
Hello,

I'm new to using JupyterLab and was wondering if someone knows how I can save my code & output as HTML so I can view it later.

Unfortunately, I can't find a direct option in menu bar or if I right click there's no option to directly save as HTML.

Is there a code that may help save to HTML?

Thanks,
-A
Reply
#2
You should be able to to Download to HTML.
[Image: vNngxS.jpg]
There are several other ways,but as shown over is simplest.
From command line:
!jupyter nbconvert  your_notebook_name.ipynb --to html
Use nbviewer(free) or GitHub that can render Notebooks as static HTML files.
Reply
#3
I'll answer the question myself.

Since I'm using Anaconda. I opened the file in Jupyter notebook where I have option to save as HTML from top Menu Bar.


EDIT: Thanks @snippsat for the screenshot!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in output of a snippet code akbarza 2 302 Feb-28-2024, 07:15 PM
Last Post: deanhystad
  Open/save file on Android frohr 0 281 Jan-24-2024, 06:28 PM
Last Post: frohr
  how to save to multiple locations during save cubangt 1 509 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  Need to replace a string with a file (HTML file) tester_V 1 699 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  save values permanently in python (perhaps not in a text file)? flash77 8 1,121 Jul-07-2023, 05:44 PM
Last Post: flash77
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,048 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  I cannot able to see output of this code ted 1 716 Feb-22-2023, 09:43 PM
Last Post: deanhystad
  Save and Close Excel File avd88 0 2,840 Feb-20-2023, 07:19 PM
Last Post: avd88
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 877 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  Save multiple Parts of Bytearray to File ? lastyle 1 909 Dec-10-2022, 08:09 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020