We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Fix vega-embed version for Altair 1
For example in https://github.com/altair-viz/altair/blob/d4d29ca06e920f71073766c6456d387e682cee17/altair/vegalite/v1/html.py#L7

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `altair/vegalite/v1/html.py`
Content:
```
1 HTML_TEMPLATE = """
2 <!DOCTYPE html>
3 <html>
4 <head>
5   <script src="https://cdn.jsdelivr.net/npm/vega@2"></script>
6   <script src="https://cdn.jsdelivr.net/npm/vega-lite@1"></script>
7   <script src="https://cdn.jsdelivr.net/npm/vega-embed@3"></script>
8 </head>
9 <body>
10   <div id="vis"></div>
11   <script type="text/javascript">
12     var spec = {spec};
13     var opt = {opt};
14     vegaEmbed("#vis", spec, opt);
15   </script>
16 </body>
17 </html>
18 """
19
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/altair/vegalite/v1/html.py b/altair/vegalite/v1/html.py
--- a/altair/vegalite/v1/html.py
+++ b/altair/vegalite/v1/html.py
@@ -4,7 +4,7 @@
 <head>
   <script src="https://cdn.jsdelivr.net/npm/vega@2"></script>
   <script src="https://cdn.jsdelivr.net/npm/vega-lite@1"></script>
-  <script src="https://cdn.jsdelivr.net/npm/vega-embed@3"></script>
+  <script src="https://cdn.jsdelivr.net/npm/vega-embed@2"></script>
 </head>
 <body>
   <div id="vis"></div>

{"golden_diff": "diff --git a/altair/vegalite/v1/html.py b/altair/vegalite/v1/html.py\n--- a/altair/vegalite/v1/html.py\n+++ b/altair/vegalite/v1/html.py\n@@ -4,7 +4,7 @@\n <head>\n   <script src=\"https://cdn.jsdelivr.net/npm/vega@2\"></script>\n   <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@1\"></script>\n-  <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@3\"></script>\n+  <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@2\"></script>\n </head>\n <body>\n   <div id=\"vis\"></div>\n", "issue": "Fix vega-embed version for Altair 1\nFor example in https://github.com/altair-viz/altair/blob/d4d29ca06e920f71073766c6456d387e682cee17/altair/vegalite/v1/html.py#L7\n", "before_files": [{"content": "HTML_TEMPLATE = \"\"\"\n<!DOCTYPE html>\n<html>\n<head>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega@2\"></script>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@1\"></script>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@3\"></script>\n</head>\n<body>\n  <div id=\"vis\"></div>\n  <script type=\"text/javascript\">\n    var spec = {spec};\n    var opt = {opt};\n    vegaEmbed(\"#vis\", spec, opt);\n  </script>\n</body>\n</html>\n\"\"\"\n", "path": "altair/vegalite/v1/html.py"}], "after_files": [{"content": "HTML_TEMPLATE = \"\"\"\n<!DOCTYPE html>\n<html>\n<head>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega@2\"></script>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega-lite@1\"></script>\n  <script src=\"https://cdn.jsdelivr.net/npm/vega-embed@2\"></script>\n</head>\n<body>\n  <div id=\"vis\"></div>\n  <script type=\"text/javascript\">\n    var spec = {spec};\n    var opt = {opt};\n    vegaEmbed(\"#vis\", spec, opt);\n  </script>\n</body>\n</html>\n\"\"\"\n", "path": "altair/vegalite/v1/html.py"}]}