# VSCode... export Jupyter Notebook as HTML

**URL:** https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199
**Category:** VS Code
**Created:** [March 5, 2024, 3:20pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199 "2024-03-05T15:20:16Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [March 5, 2024, 3:20pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/1 "2024-03-05T15:20:16Z")

</div>

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 choose file name. Presto, it worked.

**Not any more**!!! Now, instead an obnoxious sticky text input box appears:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/0/90df045443c9c13af5d18eda35d57fca021006a2.png)

I have no idea what to fill in here, and the process just stalls. In order to get rid of this text input box, I have to _exit_ VSCode and restart it.

In the past, this text-box only appeared if I chose to export to PDF.

**Question** : What “Python Environment” am I supposed to select??

---

<div class="post-metadata">

### Author: ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)
#### Post date: [March 5, 2024, 7:45pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/2 "2024-03-05T19:45:54Z")

</div>

You need to select a python environment with the jupyter and notebook package installed. Otherwise, you get this error.  
 ![error-notebook](https://global.discourse-cdn.com/julialang/original/3X/7/6/76c36475ef05fcfae16a37961a7aed2d9193a2e5.png)

To fix this:

- install Python
- select your version of Python from the drop-down menu
- click install when the error occurs

You could open an issue in the [vscode-jupyter](https://github.com/microsoft/vscode-jupyter) extension repo. It assumes you have Python installed and it shouldn’t do that.

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [March 5, 2024, 7:52pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/3 "2024-03-05T19:52:11Z")

</div>

This used to work on this PC 3-4 months ago. What can have changed?

And what _is_ a “Python environment”? Like miniconda, or something?

---

<div class="post-metadata">

### Author: ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)
#### Post date: [March 5, 2024, 8:04pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/4 "2024-03-05T20:04:32Z")

</div>

Python and Julia share the concept of an environment: a mechanism for isolating packages from one project to another. Python has several tools for managing environments, and miniconda is one of them. But, if you don’t use Python for anything else, it is more convenient to download just Python.

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [March 6, 2024, 8:13am UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/5 "2024-03-06T08:13:57Z")

</div>

I’m not a Computer Scientist or Python expert (I used Python last time in 2017). Here is what I have done so far:

- Go to Microsoft Store and downloaded Python 3.12
- In VSCode, go to Extension and installed the core Python extension

Next, I’m trying to create a “Python Environment” (whatever that is). So I type Ctrl+Shift+P, and search for Python Environment. One choice is “conda” (…since I used Anaconda in the past…). When I do that, I’m stuck again by “computer speak”:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/4/641280a81985d64daaebd02b638ad1929ed8a21e.png)

- I don’t know what a “workspace” is. It seams like it is a _directory_ (if so, why not say so?). But I have no idea whether there are any requirements about where to put it.

---

<div class="post-metadata">

### Author: ![xiaoxi](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)
#### Post date: [March 6, 2024, 2:10pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/6 "2024-03-06T14:10:58Z")

</div>

You don’t need to create an environment. After installing Python and the Python extension, the drop-down menu should detect your version of Python.

In my case, I have Python 3.9 and the drop-down menu can detect it.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/a/1aecdcdd9b4cda98de9674ceae3aa3779b89d2d6.png)

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [March 6, 2024, 4:12pm UTC](https://discourse.julialang.org/t/vscode-export-jupyter-notebook-as-html/111199/7 "2024-03-06T16:12:03Z")

</div>

Hm. It seems to work now. I had to install Jupyter 2.0 (or something) – weird; I already hade the Jupyter plugin.
