Skip to content

Commit 44b4a82

Browse files
committed
Move to web/interactive_terminal
1 parent 598d6be commit 44b4a82

File tree

7 files changed

+15
-36
lines changed

7 files changed

+15
-36
lines changed

.github/workflows/docbuild-and-upload.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
- name: Build documentation
4747
run: doc/make.py --warnings-are-errors
4848

49-
- name: Check the interactive terminal assets have been generated
50-
run: stat web/build/lite/build/
49+
- name: Build the interactive terminal
50+
run: jupyter lite build --lite-dir web/interactive_terminal --output-dir web/build/lite
5151

5252
- name: Install ssh key
5353
run: |

web/interactive_terminal/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# The interactive `pandas` terminal
2+
3+
An interactive terminal to easily try `pandas` in the browser, powered by JupyterLite.
4+
5+
## Build
6+
7+
The interactive terminal is built with the `jupyterlite` CLI.
8+
9+
In `web/interactive_terminal`, run:
10+
11+
```bash
12+
jupyter lite build --lite-dir web/interactive_terminal --output-dir web/build/lite
13+
```

web/pandas/interactive_terminal/README.md

-17
This file was deleted.

web/pandas_web.py

-17
Original file line numberDiff line numberDiff line change
@@ -259,21 +259,6 @@ def extend_base_template(content: str, base_template: str) -> str:
259259
return result
260260

261261

262-
def build_interactive_terminal(source_path: str, target_path: str) -> int:
263-
build_cmd = [
264-
"jupyter",
265-
"lite",
266-
"build",
267-
"--lite-dir",
268-
os.path.join(source_path, "interactive_terminal"),
269-
"--output-dir",
270-
os.path.join(target_path, "lite"),
271-
"--debug",
272-
]
273-
rc = subprocess.run(build_cmd, check=True)
274-
return rc
275-
276-
277262
def main(
278263
source_path: str, target_path: str, base_url: str, ignore_io_errors: bool
279264
) -> int:
@@ -321,8 +306,6 @@ def main(
321306
os.path.join(source_path, fname), os.path.join(target_path, dirname)
322307
)
323308

324-
build_interactive_terminal(source_path, target_path)
325-
326309

327310
if __name__ == "__main__":
328311
parser = argparse.ArgumentParser(description="Documentation builder.")

0 commit comments

Comments
 (0)