The Seaborn app is a Python editor that runs in WebAssembly (Pyodide). When the status line says seaborn is ready, these names already exist:
pd— pandasnp— NumPysns— seabornplt— matplotlib.pyplot
You do not write the imports unless you want to. The workbench already called sns.set_theme().
Know how Run, plt.show(), files, Reset, and savefig work before a blank Plot panel surprises you.
Run code
Paste into the editor and press Ctrl+Enter (Windows/Linux) or Cmd+Enter (macOS). The console is stdout. The Plot panel is for figures.
print("pandas", pd.__version__)
print("seaborn", sns.__version__)
df = pd.DataFrame({"x": [1, 2, 3], "y": [1, 4, 9]})
sns.scatterplot(data=df, x="x", y="y")
plt.title("n squared")
plt.show()You should see a version pair in the console and points in the Plot panel.
plt.show() is required
This is not Jupyter. A bare sns.scatterplot(...) does not display. End every script with plt.show(), including after relplot, catplot, pairplot, and displot.
Files live in /uploads
Click Add files and choose a CSV. After that:
import os
print(os.listdir("/uploads"))Readable paths: sales.csv or /uploads/sales.csv.
Writes become download chips
import os
df = pd.DataFrame({"city": ["Nairobi", "Mombasa"], "units": [19, 13]})
sns.barplot(data=df, x="city", y="units")
plt.title("demo")
plt.savefig("demo.png", dpi=100, bbox_inches="tight")
plt.show()
print("wrote demo.png")
print(os.listdir("/uploads"))After Run, click ↓ on the file chip. Nothing is uploaded to Swiftener’s servers.
Reset, autosave, snippets
- Code autosaves in this browser.
- Reset restores the starter snippet — it does not delete
/uploads. - Clear on the Plot panel removes figures without resetting the editor.
Privacy
Python runs in this tab. Uploads live in IndexedDB on this device. Lesson pages are public HTML; they never see your figures.
Do not paste %matplotlib inline. Do not call sns.load_dataset("tips") — that tries to download a CSV from GitHub and will fail here. Build a small pd.DataFrame(...) instead, or attach a banner CSV.