Skip to content

Commit

Permalink
chore: clean up code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Sep 19, 2024
1 parent a4e37b1 commit b0a5f91
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/tutorials/browser/repl.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ from urllib.parse import urlencode
lines = """
%pip install numpy pandas tzdata
import pyodide_js, pathlib, js
await pyodide_js.loadPackage("https://storage.googleapis.com/ibis-wasm-wheels/pyarrow-17.0.0-cp312-cp312-pyodide_2024_0_wasm32.whl")
pathlib.Path("penguins.csv").write_text(await (await js.fetch("https://storage.googleapis.com/ibis-tutorial-data/penguins.csv")).text())
del pyodide_js, pathlib, js
import pyodide_js, pathlib
pyarrow_wheel_url = "https://storage.googleapis.com/ibis-wasm-wheels/pyarrow-17.0.0-cp312-cp312-pyodide_2024_0_wasm32.whl"
await pyodide_js.loadPackage(pyarrow_wheel_url)
penguins_url = "https://storage.googleapis.com/ibis-tutorial-data/penguins.csv"
penguins_text = await (await js.fetch(penguins_url)).text()
pathlib.Path("penguins.csv").write_text(penguins_text)
del pyarrow_wheel_url, penguins_text, penguins_url, pyodide_js, pathlib
%clear
%pip install 'ibis-framework[duckdb]'
from ibis.interactive import *
Expand Down

0 comments on commit b0a5f91

Please sign in to comment.