whybook 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- whybook-0.2.0/.copier-answers.yml +16 -0
- whybook-0.2.0/.gitignore +131 -0
- whybook-0.2.0/.prettierignore +12 -0
- whybook-0.2.0/.yarnrc.yml +2 -0
- whybook-0.2.0/CHANGELOG.md +5 -0
- whybook-0.2.0/LICENSE +203 -0
- whybook-0.2.0/PKG-INFO +145 -0
- whybook-0.2.0/README.md +82 -0
- whybook-0.2.0/RELEASE.md +88 -0
- whybook-0.2.0/babel.config.js +1 -0
- whybook-0.2.0/conftest.py +42 -0
- whybook-0.2.0/eslint.config.mjs +241 -0
- whybook-0.2.0/examples/home_energy/energy.py +29 -0
- whybook-0.2.0/examples/home_energy/half_hourly.parquet +0 -0
- whybook-0.2.0/examples/home_energy/home_energy.ipynb +7851 -0
- whybook-0.2.0/examples/home_energy/homes.csv +361 -0
- whybook-0.2.0/examples/home_energy/readings.parquet +0 -0
- whybook-0.2.0/examples/home_energy/tariffs.csv +6 -0
- whybook-0.2.0/examples/home_energy/weather.csv +1461 -0
- whybook-0.2.0/examples/pain_diary/clinic.sqlite +0 -0
- whybook-0.2.0/examples/pain_diary/pain_diary_cohort.ipynb +998 -0
- whybook-0.2.0/examples/pain_diary/pain_diary_cohort_6h.ipynb +49551 -0
- whybook-0.2.0/examples/pain_diary/prep.py +207 -0
- whybook-0.2.0/examples/plots/libraries.ipynb +3918 -0
- whybook-0.2.0/examples/plots/plots_check.ipynb +87 -0
- whybook-0.2.0/examples/students.ipynb +73 -0
- whybook-0.2.0/install.json +5 -0
- whybook-0.2.0/jest.config.js +37 -0
- whybook-0.2.0/jupyter-config/kernels/python3-sandboxed/kernel.json +11 -0
- whybook-0.2.0/jupyter-config/kernels/python3-sandboxed/logo-32x32.png +0 -0
- whybook-0.2.0/jupyter-config/kernels/python3-sandboxed/logo-64x64.png +0 -0
- whybook-0.2.0/jupyter-config/kernels/python3-sandboxed/logo-svg.svg +1 -0
- whybook-0.2.0/jupyter-config/preview/jupyter_server_config.py +37 -0
- whybook-0.2.0/jupyter-config/server-config/whybook.json +7 -0
- whybook-0.2.0/package.json +182 -0
- whybook-0.2.0/pain_diary_demo.ipynb +1247 -0
- whybook-0.2.0/pain_diary_demo_6h.ipynb +49351 -0
- whybook-0.2.0/pyproject.toml +173 -0
- whybook-0.2.0/schema/agent-runs.json +16 -0
- whybook-0.2.0/schema/checkup.json +39 -0
- whybook-0.2.0/schema/plugin.json +455 -0
- whybook-0.2.0/schema/reproduce.json +28 -0
- whybook-0.2.0/scripts/embed-kernel-code.mjs +59 -0
- whybook-0.2.0/scripts/examples/home_energy/make_data.py +254 -0
- whybook-0.2.0/scripts/examples/home_energy/make_notebook.py +388 -0
- whybook-0.2.0/scripts/examples/kept_state.py +121 -0
- whybook-0.2.0/scripts/examples/pain_diary/make_later.py +427 -0
- whybook-0.2.0/scripts/examples/pain_diary/make_notebook.py +192 -0
- whybook-0.2.0/scripts/examples/plots/make_notebook.py +244 -0
- whybook-0.2.0/src/__tests__/agent.spec.ts +528 -0
- whybook-0.2.0/src/__tests__/agentruns.spec.tsx +373 -0
- whybook-0.2.0/src/__tests__/agenttext.spec.tsx +166 -0
- whybook-0.2.0/src/__tests__/api.spec.ts +384 -0
- whybook-0.2.0/src/__tests__/asked.spec.ts +57 -0
- whybook-0.2.0/src/__tests__/axes.spec.ts +231 -0
- whybook-0.2.0/src/__tests__/bars.spec.tsx +149 -0
- whybook-0.2.0/src/__tests__/barwhy.spec.ts +75 -0
- whybook-0.2.0/src/__tests__/bench-focus.spec.tsx +214 -0
- whybook-0.2.0/src/__tests__/bench-markdown.spec.tsx +139 -0
- whybook-0.2.0/src/__tests__/bench-sections.spec.tsx +221 -0
- whybook-0.2.0/src/__tests__/bench-views.spec.tsx +279 -0
- whybook-0.2.0/src/__tests__/bench-work.spec.tsx +187 -0
- whybook-0.2.0/src/__tests__/cellorder.spec.ts +130 -0
- whybook-0.2.0/src/__tests__/celltitles.spec.ts +301 -0
- whybook-0.2.0/src/__tests__/checkup.spec.ts +1058 -0
- whybook-0.2.0/src/__tests__/checkupui.spec.tsx +324 -0
- whybook-0.2.0/src/__tests__/claims.spec.ts +92 -0
- whybook-0.2.0/src/__tests__/closedview.spec.ts +198 -0
- whybook-0.2.0/src/__tests__/connection.spec.ts +293 -0
- whybook-0.2.0/src/__tests__/connectionfocus.spec.tsx +209 -0
- whybook-0.2.0/src/__tests__/contentshead.spec.tsx +54 -0
- whybook-0.2.0/src/__tests__/cost.spec.ts +368 -0
- whybook-0.2.0/src/__tests__/counts.spec.tsx +41 -0
- whybook-0.2.0/src/__tests__/crosskernel.spec.ts +666 -0
- whybook-0.2.0/src/__tests__/crossruns.spec.ts +729 -0
- whybook-0.2.0/src/__tests__/custommodels.spec.ts +40 -0
- whybook-0.2.0/src/__tests__/datalinks.spec.ts +88 -0
- whybook-0.2.0/src/__tests__/dateregion.spec.ts +158 -0
- whybook-0.2.0/src/__tests__/decisions.spec.ts +437 -0
- whybook-0.2.0/src/__tests__/deletedanswer.spec.tsx +433 -0
- whybook-0.2.0/src/__tests__/explored.spec.tsx +590 -0
- whybook-0.2.0/src/__tests__/failedrun.spec.ts +163 -0
- whybook-0.2.0/src/__tests__/fakes/bench-fake.ts +157 -0
- whybook-0.2.0/src/__tests__/fakes/bench-render.tsx +77 -0
- whybook-0.2.0/src/__tests__/fakes/model-fake.ts +148 -0
- whybook-0.2.0/src/__tests__/fakes/quiet.ts +20 -0
- whybook-0.2.0/src/__tests__/fakes/settings-fake.ts +30 -0
- whybook-0.2.0/src/__tests__/firstdrops.spec.ts +478 -0
- whybook-0.2.0/src/__tests__/founddefaults.spec.tsx +624 -0
- whybook-0.2.0/src/__tests__/frametable.spec.ts +589 -0
- whybook-0.2.0/src/__tests__/future.spec.ts +214 -0
- whybook-0.2.0/src/__tests__/inferred.spec.ts +292 -0
- whybook-0.2.0/src/__tests__/interactions.spec.tsx +801 -0
- whybook-0.2.0/src/__tests__/keycheck.spec.tsx +579 -0
- whybook-0.2.0/src/__tests__/labels.spec.ts +77 -0
- whybook-0.2.0/src/__tests__/languages.spec.ts +414 -0
- whybook-0.2.0/src/__tests__/launcher.spec.ts +542 -0
- whybook-0.2.0/src/__tests__/leaveout.spec.tsx +189 -0
- whybook-0.2.0/src/__tests__/logs.spec.ts +110 -0
- whybook-0.2.0/src/__tests__/minimap.spec.ts +73 -0
- whybook-0.2.0/src/__tests__/modelquestions.spec.tsx +319 -0
- whybook-0.2.0/src/__tests__/models.spec.ts +381 -0
- whybook-0.2.0/src/__tests__/modelsfield.spec.tsx +64 -0
- whybook-0.2.0/src/__tests__/ninejs.spec.ts +104 -0
- whybook-0.2.0/src/__tests__/numbers.spec.ts +239 -0
- whybook-0.2.0/src/__tests__/outputs.spec.ts +65 -0
- whybook-0.2.0/src/__tests__/own.spec.ts +94 -0
- whybook-0.2.0/src/__tests__/placement.spec.ts +598 -0
- whybook-0.2.0/src/__tests__/placemenu.spec.tsx +175 -0
- whybook-0.2.0/src/__tests__/plotaxes.spec.tsx +371 -0
- whybook-0.2.0/src/__tests__/plotfit.spec.ts +117 -0
- whybook-0.2.0/src/__tests__/plotkeys.spec.tsx +320 -0
- whybook-0.2.0/src/__tests__/plotlines.spec.tsx +97 -0
- whybook-0.2.0/src/__tests__/plotly.spec.ts +78 -0
- whybook-0.2.0/src/__tests__/plotmeans.spec.tsx +106 -0
- whybook-0.2.0/src/__tests__/progress.spec.ts +109 -0
- whybook-0.2.0/src/__tests__/pycode.spec.ts +35 -0
- whybook-0.2.0/src/__tests__/questionfocus.spec.tsx +72 -0
- whybook-0.2.0/src/__tests__/questionorder.spec.ts +65 -0
- whybook-0.2.0/src/__tests__/rchips.spec.tsx +450 -0
- whybook-0.2.0/src/__tests__/readkernel.spec.ts +42 -0
- whybook-0.2.0/src/__tests__/refresh.spec.ts +305 -0
- whybook-0.2.0/src/__tests__/regioncode.spec.ts +154 -0
- whybook-0.2.0/src/__tests__/regionrows.spec.ts +74 -0
- whybook-0.2.0/src/__tests__/restore.spec.ts +146 -0
- whybook-0.2.0/src/__tests__/retention.spec.tsx +358 -0
- whybook-0.2.0/src/__tests__/rulesfirst.spec.ts +564 -0
- whybook-0.2.0/src/__tests__/runhistory.spec.tsx +630 -0
- whybook-0.2.0/src/__tests__/runreveal.spec.tsx +286 -0
- whybook-0.2.0/src/__tests__/secrets.spec.ts +199 -0
- whybook-0.2.0/src/__tests__/settingcards.spec.tsx +308 -0
- whybook-0.2.0/src/__tests__/settings.spec.ts +92 -0
- whybook-0.2.0/src/__tests__/spacedetail.spec.tsx +772 -0
- whybook-0.2.0/src/__tests__/speech.spec.ts +620 -0
- whybook-0.2.0/src/__tests__/subshells.spec.ts +294 -0
- whybook-0.2.0/src/__tests__/tableask.spec.ts +263 -0
- whybook-0.2.0/src/__tests__/tablekeys.spec.tsx +95 -0
- whybook-0.2.0/src/__tests__/tables.spec.ts +181 -0
- whybook-0.2.0/src/__tests__/taskmodels.spec.tsx +401 -0
- whybook-0.2.0/src/__tests__/tooltip.spec.tsx +239 -0
- whybook-0.2.0/src/__tests__/undoask.spec.tsx +348 -0
- whybook-0.2.0/src/__tests__/values.spec.ts +87 -0
- whybook-0.2.0/src/__tests__/viewpanels.spec.tsx +961 -0
- whybook-0.2.0/src/__tests__/voicedownload.spec.tsx +99 -0
- whybook-0.2.0/src/__tests__/writtenby.spec.ts +182 -0
- whybook-0.2.0/src/agentruns.ts +131 -0
- whybook-0.2.0/src/checkup.ts +389 -0
- whybook-0.2.0/src/contextmenu.ts +355 -0
- whybook-0.2.0/src/databases.tsx +304 -0
- whybook-0.2.0/src/icons.ts +78 -0
- whybook-0.2.0/src/index.ts +547 -0
- whybook-0.2.0/src/kernelCode.ts +41 -0
- whybook-0.2.0/src/kernelmenu.ts +155 -0
- whybook-0.2.0/src/launcher.ts +487 -0
- whybook-0.2.0/src/model/agent.ts +615 -0
- whybook-0.2.0/src/model/api.ts +879 -0
- whybook-0.2.0/src/model/asked.ts +62 -0
- whybook-0.2.0/src/model/axes.ts +274 -0
- whybook-0.2.0/src/model/bars.ts +112 -0
- whybook-0.2.0/src/model/celltitles.ts +370 -0
- whybook-0.2.0/src/model/checkup.ts +1526 -0
- whybook-0.2.0/src/model/claims.ts +195 -0
- whybook-0.2.0/src/model/connection.ts +445 -0
- whybook-0.2.0/src/model/cost.ts +482 -0
- whybook-0.2.0/src/model/crosskernel.ts +721 -0
- whybook-0.2.0/src/model/custommodels.ts +75 -0
- whybook-0.2.0/src/model/datalinks.ts +118 -0
- whybook-0.2.0/src/model/decisions.ts +527 -0
- whybook-0.2.0/src/model/epimodel.ts +9007 -0
- whybook-0.2.0/src/model/exploredorder.ts +81 -0
- whybook-0.2.0/src/model/founddefaults.ts +373 -0
- whybook-0.2.0/src/model/framenotes.ts +148 -0
- whybook-0.2.0/src/model/frametable.ts +1580 -0
- whybook-0.2.0/src/model/handedit.ts +86 -0
- whybook-0.2.0/src/model/imageask.ts +190 -0
- whybook-0.2.0/src/model/inferred.ts +373 -0
- whybook-0.2.0/src/model/ipywidgets.ts +32 -0
- whybook-0.2.0/src/model/jobs.ts +451 -0
- whybook-0.2.0/src/model/kernel.ts +867 -0
- whybook-0.2.0/src/model/labels.ts +83 -0
- whybook-0.2.0/src/model/languages.ts +298 -0
- whybook-0.2.0/src/model/leaveout.ts +145 -0
- whybook-0.2.0/src/model/libraries.ts +288 -0
- whybook-0.2.0/src/model/logs.ts +187 -0
- whybook-0.2.0/src/model/modelquestions.ts +59 -0
- whybook-0.2.0/src/model/models.ts +761 -0
- whybook-0.2.0/src/model/names.ts +5 -0
- whybook-0.2.0/src/model/ninejs.ts +108 -0
- whybook-0.2.0/src/model/notebook.ts +320 -0
- whybook-0.2.0/src/model/numbers.ts +668 -0
- whybook-0.2.0/src/model/outputs.ts +223 -0
- whybook-0.2.0/src/model/own.ts +112 -0
- whybook-0.2.0/src/model/placement.ts +173 -0
- whybook-0.2.0/src/model/plothooks.ts +220 -0
- whybook-0.2.0/src/model/plotly.ts +211 -0
- whybook-0.2.0/src/model/progress.ts +137 -0
- whybook-0.2.0/src/model/pycode.ts +40 -0
- whybook-0.2.0/src/model/questionorder.ts +90 -0
- whybook-0.2.0/src/model/refresh.ts +185 -0
- whybook-0.2.0/src/model/regionrows.ts +111 -0
- whybook-0.2.0/src/model/restore.ts +275 -0
- whybook-0.2.0/src/model/rulesfirst.ts +203 -0
- whybook-0.2.0/src/model/runnames.ts +92 -0
- whybook-0.2.0/src/model/runs.ts +527 -0
- whybook-0.2.0/src/model/runtimes.ts +188 -0
- whybook-0.2.0/src/model/settings.ts +100 -0
- whybook-0.2.0/src/model/spacedetail.ts +226 -0
- whybook-0.2.0/src/model/speech/browser.ts +305 -0
- whybook-0.2.0/src/model/speech/engine.ts +127 -0
- whybook-0.2.0/src/model/speech/moonshine-medium.ts +8 -0
- whybook-0.2.0/src/model/speech/moonshine-small.ts +8 -0
- whybook-0.2.0/src/model/speech/recorder.ts +172 -0
- whybook-0.2.0/src/model/speech/registry.ts +23 -0
- whybook-0.2.0/src/model/speech/server.ts +196 -0
- whybook-0.2.0/src/model/speech/terms.ts +86 -0
- whybook-0.2.0/src/model/speech/wav.ts +69 -0
- whybook-0.2.0/src/model/tableask.ts +1017 -0
- whybook-0.2.0/src/model/tablenotes.ts +243 -0
- whybook-0.2.0/src/model/tables.ts +146 -0
- whybook-0.2.0/src/model/values.ts +46 -0
- whybook-0.2.0/src/model/writtenby.ts +143 -0
- whybook-0.2.0/src/reload.ts +128 -0
- whybook-0.2.0/src/reproduce.ts +477 -0
- whybook-0.2.0/src/request.ts +128 -0
- whybook-0.2.0/src/sidepanel.ts +80 -0
- whybook-0.2.0/src/tokens.ts +796 -0
- whybook-0.2.0/src/ui/agent.tsx +518 -0
- whybook-0.2.0/src/ui/aipanel.tsx +243 -0
- whybook-0.2.0/src/ui/bench.tsx +1940 -0
- whybook-0.2.0/src/ui/checkup.tsx +342 -0
- whybook-0.2.0/src/ui/common.tsx +1795 -0
- whybook-0.2.0/src/ui/connection.tsx +1325 -0
- whybook-0.2.0/src/ui/cost.tsx +298 -0
- whybook-0.2.0/src/ui/counts.tsx +34 -0
- whybook-0.2.0/src/ui/datapolicy.tsx +232 -0
- whybook-0.2.0/src/ui/details.tsx +672 -0
- whybook-0.2.0/src/ui/document.tsx +727 -0
- whybook-0.2.0/src/ui/dragscroll.ts +186 -0
- whybook-0.2.0/src/ui/empty.tsx +189 -0
- whybook-0.2.0/src/ui/exploration.tsx +678 -0
- whybook-0.2.0/src/ui/extensions.ts +16 -0
- whybook-0.2.0/src/ui/founddefaults.tsx +115 -0
- whybook-0.2.0/src/ui/imagebrush.tsx +567 -0
- whybook-0.2.0/src/ui/inferred.tsx +116 -0
- whybook-0.2.0/src/ui/leaveout.tsx +130 -0
- whybook-0.2.0/src/ui/linear.tsx +514 -0
- whybook-0.2.0/src/ui/map.tsx +1438 -0
- whybook-0.2.0/src/ui/menukeys.ts +69 -0
- whybook-0.2.0/src/ui/minimap.tsx +180 -0
- whybook-0.2.0/src/ui/modeloptions.tsx +56 -0
- whybook-0.2.0/src/ui/modelsfield.tsx +273 -0
- whybook-0.2.0/src/ui/outputs.tsx +643 -0
- whybook-0.2.0/src/ui/plot.tsx +1282 -0
- whybook-0.2.0/src/ui/popoverplace.ts +253 -0
- whybook-0.2.0/src/ui/runs.tsx +341 -0
- whybook-0.2.0/src/ui/segmented.tsx +147 -0
- whybook-0.2.0/src/ui/settingcards.tsx +223 -0
- whybook-0.2.0/src/ui/settingpictures.tsx +1250 -0
- whybook-0.2.0/src/ui/spacedetail.ts +159 -0
- whybook-0.2.0/src/ui/tablequestions.tsx +612 -0
- whybook-0.2.0/src/ui/tables.tsx +236 -0
- whybook-0.2.0/src/ui/taskmodels.tsx +157 -0
- whybook-0.2.0/src/ui/tooltip.tsx +168 -0
- whybook-0.2.0/src/ui/undoask.tsx +119 -0
- whybook-0.2.0/src/ui/variables.tsx +1879 -0
- whybook-0.2.0/src/ui/voice.tsx +280 -0
- whybook-0.2.0/src/widgets.tsx +491 -0
- whybook-0.2.0/style/base.css +5012 -0
- whybook-0.2.0/style/checkup.css +208 -0
- whybook-0.2.0/style/chips.css +54 -0
- whybook-0.2.0/style/crosskernel.css +50 -0
- whybook-0.2.0/style/dogfood2.css +99 -0
- whybook-0.2.0/style/explored.css +50 -0
- whybook-0.2.0/style/imagebrush.css +61 -0
- whybook-0.2.0/style/index.css +13 -0
- whybook-0.2.0/style/index.js +13 -0
- whybook-0.2.0/style/launcher.css +25 -0
- whybook-0.2.0/style/leaveout.css +83 -0
- whybook-0.2.0/style/papercuts.css +101 -0
- whybook-0.2.0/style/runs.css +131 -0
- whybook-0.2.0/style/settingcards.css +278 -0
- whybook-0.2.0/style/tablequestions.css +63 -0
- whybook-0.2.0/tsconfig.json +26 -0
- whybook-0.2.0/tsconfig.test.json +3 -0
- whybook-0.2.0/ui-tests/README.md +167 -0
- whybook-0.2.0/ui-tests/jupyter_server_test_config.py +36 -0
- whybook-0.2.0/ui-tests/package.json +15 -0
- whybook-0.2.0/ui-tests/playwright.config.js +29 -0
- whybook-0.2.0/ui-tests/smoke.js +469 -0
- whybook-0.2.0/ui-tests/tests/cells-and-outputs.spec.ts +1037 -0
- whybook-0.2.0/ui-tests/tests/checkup.spec.ts +725 -0
- whybook-0.2.0/ui-tests/tests/checkupicon.spec.ts +339 -0
- whybook-0.2.0/ui-tests/tests/chips.spec.ts +397 -0
- whybook-0.2.0/ui-tests/tests/crosskernel.spec.ts +495 -0
- whybook-0.2.0/ui-tests/tests/detail.spec.ts +382 -0
- whybook-0.2.0/ui-tests/tests/explored.spec.ts +316 -0
- whybook-0.2.0/ui-tests/tests/firstdrops.spec.ts +441 -0
- whybook-0.2.0/ui-tests/tests/fixtures.ts +74 -0
- whybook-0.2.0/ui-tests/tests/interactions.spec.ts +578 -0
- whybook-0.2.0/ui-tests/tests/kernels.spec.ts +390 -0
- whybook-0.2.0/ui-tests/tests/keys.spec.ts +557 -0
- whybook-0.2.0/ui-tests/tests/launcher.spec.ts +149 -0
- whybook-0.2.0/ui-tests/tests/model-questions.spec.ts +349 -0
- whybook-0.2.0/ui-tests/tests/placement.spec.ts +583 -0
- whybook-0.2.0/ui-tests/tests/plots.spec.ts +454 -0
- whybook-0.2.0/ui-tests/tests/rchips.spec.ts +285 -0
- whybook-0.2.0/ui-tests/tests/rules.spec.ts +474 -0
- whybook-0.2.0/ui-tests/tests/runs-history.spec.ts +481 -0
- whybook-0.2.0/ui-tests/tests/runs.spec.ts +570 -0
- whybook-0.2.0/ui-tests/tests/sandbox.spec.ts +287 -0
- whybook-0.2.0/ui-tests/tests/settingcards.spec.ts +130 -0
- whybook-0.2.0/ui-tests/tests/signatures.spec.ts +389 -0
- whybook-0.2.0/ui-tests/tests/tables.spec.ts +447 -0
- whybook-0.2.0/ui-tests/tests/taskmodels.spec.ts +269 -0
- whybook-0.2.0/ui-tests/tests/templates-profiles.spec.ts +543 -0
- whybook-0.2.0/ui-tests/tests/templates-units.spec.ts +306 -0
- whybook-0.2.0/ui-tests/tests/tooltips.ts +23 -0
- whybook-0.2.0/ui-tests/tests/view-panels.spec.ts +737 -0
- whybook-0.2.0/ui-tests/tests/view.spec.ts +6883 -0
- whybook-0.2.0/ui-tests/tests/voice.spec.ts +469 -0
- whybook-0.2.0/ui-tests/tests/zdr.spec.ts +304 -0
- whybook-0.2.0/ui-tests/tsconfig.json +15 -0
- whybook-0.2.0/ui-tests/yarn.lock +4385 -0
- whybook-0.2.0/whybook/__init__.py +65 -0
- whybook-0.2.0/whybook/_display.py +49 -0
- whybook-0.2.0/whybook/_progress.py +34 -0
- whybook-0.2.0/whybook/_version.py +4 -0
- whybook-0.2.0/whybook/explore.py +838 -0
- whybook-0.2.0/whybook/labextension/package.json +187 -0
- whybook-0.2.0/whybook/labextension/schemas/whybook/agent-runs.json +16 -0
- whybook-0.2.0/whybook/labextension/schemas/whybook/checkup.json +39 -0
- whybook-0.2.0/whybook/labextension/schemas/whybook/package.json.orig +182 -0
- whybook-0.2.0/whybook/labextension/schemas/whybook/plugin.json +455 -0
- whybook-0.2.0/whybook/labextension/schemas/whybook/reproduce.json +28 -0
- whybook-0.2.0/whybook/labextension/static/387.a73f0a6b762f84a0.js +12 -0
- whybook-0.2.0/whybook/labextension/static/442.2e11b710d70b3df5.js +6216 -0
- whybook-0.2.0/whybook/labextension/static/remoteEntry.c97c03f6895d6d6b.js +1 -0
- whybook-0.2.0/whybook/labextension/static/style.js +4 -0
- whybook-0.2.0/whybook/labextension/static/third-party-licenses.json +16 -0
- whybook-0.2.0/whybook/plots.py +347 -0
- whybook-0.2.0/whybook/sandbox/__init__.py +15 -0
- whybook-0.2.0/whybook/sandbox/__main__.py +7 -0
- whybook-0.2.0/whybook/sandbox/bwrap.py +164 -0
- whybook-0.2.0/whybook/sandbox/codex/LICENSE +201 -0
- whybook-0.2.0/whybook/sandbox/codex/NOTICE +6 -0
- whybook-0.2.0/whybook/sandbox/codex/seatbelt_base_policy.sbpl +121 -0
- whybook-0.2.0/whybook/sandbox/codex/seatbelt_read_only_platform_defaults.sbpl +193 -0
- whybook-0.2.0/whybook/sandbox/kernelspec.py +198 -0
- whybook-0.2.0/whybook/sandbox/policy.py +131 -0
- whybook-0.2.0/whybook/sandbox/provisioner.py +495 -0
- whybook-0.2.0/whybook/sandbox/seatbelt.py +165 -0
- whybook-0.2.0/whybook/server/__init__.py +34 -0
- whybook-0.2.0/whybook/server/agent.py +1009 -0
- whybook-0.2.0/whybook/server/cell_titles.py +128 -0
- whybook-0.2.0/whybook/server/claude.py +384 -0
- whybook-0.2.0/whybook/server/codegen.py +694 -0
- whybook-0.2.0/whybook/server/config.py +231 -0
- whybook-0.2.0/whybook/server/connection.py +418 -0
- whybook-0.2.0/whybook/server/databases.py +119 -0
- whybook-0.2.0/whybook/server/dependencies.py +335 -0
- whybook-0.2.0/whybook/server/frame_notes.py +105 -0
- whybook-0.2.0/whybook/server/kernel_code/analyze_cells.py +763 -0
- whybook-0.2.0/whybook/server/kernel_code/inspect_variables.py +507 -0
- whybook-0.2.0/whybook/server/kernel_code/kernel_facts.py +57 -0
- whybook-0.2.0/whybook/server/kernel_code/plot_hooks.py +675 -0
- whybook-0.2.0/whybook/server/kernel_code/r/analyze_cells.R +1102 -0
- whybook-0.2.0/whybook/server/kernel_code/r/inspect_variables.R +240 -0
- whybook-0.2.0/whybook/server/kernel_code/r/kernel_facts.R +17 -0
- whybook-0.2.0/whybook/server/kernel_code/r/write_frames.R +61 -0
- whybook-0.2.0/whybook/server/kernel_code/region_summary.py +112 -0
- whybook-0.2.0/whybook/server/kernel_code/table_rows.py +605 -0
- whybook-0.2.0/whybook/server/kernel_code/write_frames.py +123 -0
- whybook-0.2.0/whybook/server/keystore.py +126 -0
- whybook-0.2.0/whybook/server/library_defaults.py +349 -0
- whybook-0.2.0/whybook/server/local_models.py +1209 -0
- whybook-0.2.0/whybook/server/model_client.py +650 -0
- whybook-0.2.0/whybook/server/privacy.py +323 -0
- whybook-0.2.0/whybook/server/providers.py +442 -0
- whybook-0.2.0/whybook/server/questions/__init__.py +1 -0
- whybook-0.2.0/whybook/server/questions/cells.py +1063 -0
- whybook-0.2.0/whybook/server/questions/claude_questions.py +681 -0
- whybook-0.2.0/whybook/server/questions/drops.py +849 -0
- whybook-0.2.0/whybook/server/questions/files.py +307 -0
- whybook-0.2.0/whybook/server/questions/learned_ranker.json +74 -0
- whybook-0.2.0/whybook/server/questions/models.py +370 -0
- whybook-0.2.0/whybook/server/questions/rankers.py +206 -0
- whybook-0.2.0/whybook/server/questions/ranking.py +202 -0
- whybook-0.2.0/whybook/server/questions/reshape.py +144 -0
- whybook-0.2.0/whybook/server/questions/review.py +267 -0
- whybook-0.2.0/whybook/server/questions/starts.py +329 -0
- whybook-0.2.0/whybook/server/questions/tables.py +202 -0
- whybook-0.2.0/whybook/server/questions/templates.py +224 -0
- whybook-0.2.0/whybook/server/questions/values.py +754 -0
- whybook-0.2.0/whybook/server/routes.py +994 -0
- whybook-0.2.0/whybook/server/signin.py +287 -0
- whybook-0.2.0/whybook/server/solve.py +408 -0
- whybook-0.2.0/whybook/server/sorting.py +143 -0
- whybook-0.2.0/whybook/server/speech.py +292 -0
- whybook-0.2.0/whybook/server/table_facts.py +611 -0
- whybook-0.2.0/whybook/server/table_notes.py +113 -0
- whybook-0.2.0/whybook/server/tests/__init__.py +1 -0
- whybook-0.2.0/whybook/server/tests/data/secret_names.json +311 -0
- whybook-0.2.0/whybook/server/tests/demo_state.py +120 -0
- whybook-0.2.0/whybook/server/tests/test_agent.py +398 -0
- whybook-0.2.0/whybook/server/tests/test_agent_answers.py +194 -0
- whybook-0.2.0/whybook/server/tests/test_agent_prompt.py +102 -0
- whybook-0.2.0/whybook/server/tests/test_cell_titles.py +96 -0
- whybook-0.2.0/whybook/server/tests/test_chip_rules.py +127 -0
- whybook-0.2.0/whybook/server/tests/test_claude.py +232 -0
- whybook-0.2.0/whybook/server/tests/test_claude_code_login.py +27 -0
- whybook-0.2.0/whybook/server/tests/test_codegen.py +176 -0
- whybook-0.2.0/whybook/server/tests/test_connection.py +266 -0
- whybook-0.2.0/whybook/server/tests/test_constant_kinds.py +265 -0
- whybook-0.2.0/whybook/server/tests/test_cross_kernel.py +347 -0
- whybook-0.2.0/whybook/server/tests/test_databases.py +76 -0
- whybook-0.2.0/whybook/server/tests/test_decisions.py +248 -0
- whybook-0.2.0/whybook/server/tests/test_demo_templates.py +153 -0
- whybook-0.2.0/whybook/server/tests/test_dependencies.py +81 -0
- whybook-0.2.0/whybook/server/tests/test_drawing_decisions.py +32 -0
- whybook-0.2.0/whybook/server/tests/test_drop_templates.py +115 -0
- whybook-0.2.0/whybook/server/tests/test_files.py +60 -0
- whybook-0.2.0/whybook/server/tests/test_first_drops.py +249 -0
- whybook-0.2.0/whybook/server/tests/test_frame_notes.py +78 -0
- whybook-0.2.0/whybook/server/tests/test_home_energy.py +81 -0
- whybook-0.2.0/whybook/server/tests/test_image_solve.py +116 -0
- whybook-0.2.0/whybook/server/tests/test_kernel_code.py +301 -0
- whybook-0.2.0/whybook/server/tests/test_key_check.py +302 -0
- whybook-0.2.0/whybook/server/tests/test_later_demo.py +67 -0
- whybook-0.2.0/whybook/server/tests/test_learned_order.py +54 -0
- whybook-0.2.0/whybook/server/tests/test_library_defaults.py +295 -0
- whybook-0.2.0/whybook/server/tests/test_list_prices.py +133 -0
- whybook-0.2.0/whybook/server/tests/test_local_models.py +800 -0
- whybook-0.2.0/whybook/server/tests/test_model_client.py +345 -0
- whybook-0.2.0/whybook/server/tests/test_model_questions.py +265 -0
- whybook-0.2.0/whybook/server/tests/test_no_template.py +93 -0
- whybook-0.2.0/whybook/server/tests/test_notebook_helpers.py +291 -0
- whybook-0.2.0/whybook/server/tests/test_notes.py +70 -0
- whybook-0.2.0/whybook/server/tests/test_plot_hooks.py +649 -0
- whybook-0.2.0/whybook/server/tests/test_privacy.py +187 -0
- whybook-0.2.0/whybook/server/tests/test_providers.py +313 -0
- whybook-0.2.0/whybook/server/tests/test_question_timing.py +110 -0
- whybook-0.2.0/whybook/server/tests/test_questions.py +157 -0
- whybook-0.2.0/whybook/server/tests/test_r_analysis.py +524 -0
- whybook-0.2.0/whybook/server/tests/test_ranking.py +123 -0
- whybook-0.2.0/whybook/server/tests/test_refusals.py +96 -0
- whybook-0.2.0/whybook/server/tests/test_review_questions.py +163 -0
- whybook-0.2.0/whybook/server/tests/test_routes.py +167 -0
- whybook-0.2.0/whybook/server/tests/test_sandbox.py +902 -0
- whybook-0.2.0/whybook/server/tests/test_secret_names.py +62 -0
- whybook-0.2.0/whybook/server/tests/test_settings.py +31 -0
- whybook-0.2.0/whybook/server/tests/test_signatures.py +164 -0
- whybook-0.2.0/whybook/server/tests/test_signin.py +327 -0
- whybook-0.2.0/whybook/server/tests/test_solve.py +139 -0
- whybook-0.2.0/whybook/server/tests/test_sorting.py +254 -0
- whybook-0.2.0/whybook/server/tests/test_speech.py +317 -0
- whybook-0.2.0/whybook/server/tests/test_start_questions.py +341 -0
- whybook-0.2.0/whybook/server/tests/test_table_notes.py +91 -0
- whybook-0.2.0/whybook/server/tests/test_table_rows.py +296 -0
- whybook-0.2.0/whybook/server/tests/test_task_models.py +123 -0
- whybook-0.2.0/whybook/server/tests/test_template_names.py +155 -0
- whybook-0.2.0/whybook/server/tests/test_template_values.py +35 -0
- whybook-0.2.0/whybook/server/tests/test_templates_profiles.py +477 -0
- whybook-0.2.0/whybook/server/tests/test_templates_units.py +386 -0
- whybook-0.2.0/whybook/server/tests/test_temporaries.py +214 -0
- whybook-0.2.0/whybook/server/tests/test_zero_data_retention.py +140 -0
- whybook-0.2.0/whybook/server/tiers.py +110 -0
- whybook-0.2.0/yarn.lock +11637 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: v4.6.5
|
|
3
|
+
_src_path: https://github.com/jupyterlab/extension-template
|
|
4
|
+
advanced: false
|
|
5
|
+
author_email: ''
|
|
6
|
+
author_name: Michal Krassowski
|
|
7
|
+
has_ai_rules: false
|
|
8
|
+
has_binder: false
|
|
9
|
+
has_settings: true
|
|
10
|
+
kind: frontend-and-server
|
|
11
|
+
labextension_name: future
|
|
12
|
+
project_short_description: A future of data analysis
|
|
13
|
+
python_name: future
|
|
14
|
+
repository: ''
|
|
15
|
+
test: true
|
|
16
|
+
|
whybook-0.2.0/.gitignore
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
*.bundle.*
|
|
2
|
+
lib/
|
|
3
|
+
node_modules/
|
|
4
|
+
*.log
|
|
5
|
+
.eslintcache
|
|
6
|
+
.stylelintcache
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.ipynb_checkpoints
|
|
9
|
+
*.tsbuildinfo
|
|
10
|
+
whybook/labextension
|
|
11
|
+
# Version file is handled by hatchling
|
|
12
|
+
whybook/_version.py
|
|
13
|
+
|
|
14
|
+
# Integration tests
|
|
15
|
+
ui-tests/test-results/
|
|
16
|
+
ui-tests/playwright-report/
|
|
17
|
+
|
|
18
|
+
# Created by https://www.gitignore.io/api/python
|
|
19
|
+
# Edit at https://www.gitignore.io/?templates=python
|
|
20
|
+
|
|
21
|
+
### Python ###
|
|
22
|
+
# Virtual environments
|
|
23
|
+
.venv
|
|
24
|
+
|
|
25
|
+
# Byte-compiled / optimized / DLL files
|
|
26
|
+
__pycache__/
|
|
27
|
+
*.py[cod]
|
|
28
|
+
*$py.class
|
|
29
|
+
|
|
30
|
+
# C extensions
|
|
31
|
+
*.so
|
|
32
|
+
|
|
33
|
+
# Distribution / packaging
|
|
34
|
+
.Python
|
|
35
|
+
build/
|
|
36
|
+
develop-eggs/
|
|
37
|
+
dist/
|
|
38
|
+
downloads/
|
|
39
|
+
eggs/
|
|
40
|
+
.eggs/
|
|
41
|
+
lib/
|
|
42
|
+
lib64/
|
|
43
|
+
parts/
|
|
44
|
+
sdist/
|
|
45
|
+
var/
|
|
46
|
+
wheels/
|
|
47
|
+
pip-wheel-metadata/
|
|
48
|
+
share/python-wheels/
|
|
49
|
+
.installed.cfg
|
|
50
|
+
*.egg
|
|
51
|
+
MANIFEST
|
|
52
|
+
|
|
53
|
+
# PyInstaller
|
|
54
|
+
# Usually these files are written by a python script from a template
|
|
55
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
56
|
+
*.manifest
|
|
57
|
+
*.spec
|
|
58
|
+
|
|
59
|
+
# Installer logs
|
|
60
|
+
pip-log.txt
|
|
61
|
+
pip-delete-this-directory.txt
|
|
62
|
+
|
|
63
|
+
# Unit test / coverage reports
|
|
64
|
+
htmlcov/
|
|
65
|
+
.tox/
|
|
66
|
+
.nox/
|
|
67
|
+
.coverage
|
|
68
|
+
.coverage.*
|
|
69
|
+
.cache
|
|
70
|
+
nosetests.xml
|
|
71
|
+
coverage/
|
|
72
|
+
coverage.xml
|
|
73
|
+
*.cover
|
|
74
|
+
.hypothesis/
|
|
75
|
+
.pytest_cache/
|
|
76
|
+
|
|
77
|
+
# Translations
|
|
78
|
+
*.mo
|
|
79
|
+
*.pot
|
|
80
|
+
|
|
81
|
+
# Scrapy stuff:
|
|
82
|
+
.scrapy
|
|
83
|
+
|
|
84
|
+
# Sphinx documentation
|
|
85
|
+
docs/_build/
|
|
86
|
+
|
|
87
|
+
# PyBuilder
|
|
88
|
+
target/
|
|
89
|
+
|
|
90
|
+
# pyenv
|
|
91
|
+
.python-version
|
|
92
|
+
|
|
93
|
+
# celery beat schedule file
|
|
94
|
+
celerybeat-schedule
|
|
95
|
+
|
|
96
|
+
# SageMath parsed files
|
|
97
|
+
*.sage.py
|
|
98
|
+
|
|
99
|
+
# Spyder project settings
|
|
100
|
+
.spyderproject
|
|
101
|
+
.spyproject
|
|
102
|
+
|
|
103
|
+
# Rope project settings
|
|
104
|
+
.ropeproject
|
|
105
|
+
|
|
106
|
+
# Mr Developer
|
|
107
|
+
.mr.developer.cfg
|
|
108
|
+
.project
|
|
109
|
+
.pydevproject
|
|
110
|
+
|
|
111
|
+
# mkdocs documentation
|
|
112
|
+
/site
|
|
113
|
+
|
|
114
|
+
# mypy
|
|
115
|
+
.mypy_cache/
|
|
116
|
+
.dmypy.json
|
|
117
|
+
dmypy.json
|
|
118
|
+
|
|
119
|
+
# Pyre type checker
|
|
120
|
+
.pyre/
|
|
121
|
+
|
|
122
|
+
# End of https://www.gitignore.io/api/python
|
|
123
|
+
|
|
124
|
+
# OSX files
|
|
125
|
+
.DS_Store
|
|
126
|
+
|
|
127
|
+
# Yarn cache
|
|
128
|
+
.yarn/
|
|
129
|
+
|
|
130
|
+
# Screenshots of ui-tests/smoke.js
|
|
131
|
+
ui-tests/smoke-shots/
|
whybook-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Copyright (c) 2026, Michal Krassowski
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
Version 2.0, January 2004
|
|
5
|
+
http://www.apache.org/licenses/
|
|
6
|
+
|
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
8
|
+
|
|
9
|
+
1. Definitions.
|
|
10
|
+
|
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
12
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
13
|
+
|
|
14
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15
|
+
the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
18
|
+
other entities that control, are controlled by, or are under common
|
|
19
|
+
control with that entity. For the purposes of this definition,
|
|
20
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
21
|
+
direction or management of such entity, whether by contract or
|
|
22
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
23
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
24
|
+
|
|
25
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
26
|
+
exercising permissions granted by this License.
|
|
27
|
+
|
|
28
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
29
|
+
including but not limited to software source code, documentation
|
|
30
|
+
source, and configuration files.
|
|
31
|
+
|
|
32
|
+
"Object" form shall mean any form resulting from mechanical
|
|
33
|
+
transformation or translation of a Source form, including but
|
|
34
|
+
not limited to compiled object code, generated documentation,
|
|
35
|
+
and conversions to other media types.
|
|
36
|
+
|
|
37
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
38
|
+
Object form, made available under the License, as indicated by a
|
|
39
|
+
copyright notice that is included in or attached to the work
|
|
40
|
+
(an example is provided in the Appendix below).
|
|
41
|
+
|
|
42
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
43
|
+
form, that is based on (or derived from) the Work and for which the
|
|
44
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
45
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
46
|
+
of this License, Derivative Works shall not include works that remain
|
|
47
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
48
|
+
the Work and Derivative Works thereof.
|
|
49
|
+
|
|
50
|
+
"Contribution" shall mean any work of authorship, including
|
|
51
|
+
the original version of the Work and any modifications or additions
|
|
52
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
53
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
54
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
55
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
56
|
+
means any form of electronic, verbal, or written communication sent
|
|
57
|
+
to the Licensor or its representatives, including but not limited to
|
|
58
|
+
communication on electronic mailing lists, source code control systems,
|
|
59
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
60
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
61
|
+
excluding communication that is conspicuously marked or otherwise
|
|
62
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
63
|
+
|
|
64
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
65
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
66
|
+
subsequently incorporated within the Work.
|
|
67
|
+
|
|
68
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
69
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
70
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
71
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
72
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
73
|
+
Work and such Derivative Works in Source or Object form.
|
|
74
|
+
|
|
75
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
76
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
77
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
78
|
+
(except as stated in this section) patent license to make, have made,
|
|
79
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
80
|
+
where such license applies only to those patent claims licensable
|
|
81
|
+
by such Contributor that are necessarily infringed by their
|
|
82
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
83
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
84
|
+
institute patent litigation against any entity (including a
|
|
85
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
86
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
87
|
+
or contributory patent infringement, then any patent licenses
|
|
88
|
+
granted to You under this License for that Work shall terminate
|
|
89
|
+
as of the date such litigation is filed.
|
|
90
|
+
|
|
91
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
92
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
93
|
+
modifications, and in Source or Object form, provided that You
|
|
94
|
+
meet the following conditions:
|
|
95
|
+
|
|
96
|
+
(a) You must give any other recipients of the Work or
|
|
97
|
+
Derivative Works a copy of this License; and
|
|
98
|
+
|
|
99
|
+
(b) You must cause any modified files to carry prominent notices
|
|
100
|
+
stating that You changed the files; and
|
|
101
|
+
|
|
102
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
103
|
+
that You distribute, all copyright, patent, trademark, and
|
|
104
|
+
attribution notices from the Source form of the Work,
|
|
105
|
+
excluding those notices that do not pertain to any part of
|
|
106
|
+
the Derivative Works; and
|
|
107
|
+
|
|
108
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
109
|
+
distribution, then any Derivative Works that You distribute must
|
|
110
|
+
include a readable copy of the attribution notices contained
|
|
111
|
+
within such NOTICE file, excluding those notices that do not
|
|
112
|
+
pertain to any part of the Derivative Works, in at least one
|
|
113
|
+
of the following places: within a NOTICE text file distributed
|
|
114
|
+
as part of the Derivative Works; within the Source form or
|
|
115
|
+
documentation, if provided along with the Derivative Works; or,
|
|
116
|
+
within a display generated by the Derivative Works, if and
|
|
117
|
+
wherever such third-party notices normally appear. The contents
|
|
118
|
+
of the NOTICE file are for informational purposes only and
|
|
119
|
+
do not modify the License. You may add Your own attribution
|
|
120
|
+
notices within Derivative Works that You distribute, alongside
|
|
121
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
122
|
+
that such additional attribution notices cannot be construed
|
|
123
|
+
as modifying the License.
|
|
124
|
+
|
|
125
|
+
You may add Your own copyright statement to Your modifications and
|
|
126
|
+
may provide additional or different license terms and conditions
|
|
127
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
128
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
129
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
130
|
+
the conditions stated in this License.
|
|
131
|
+
|
|
132
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
133
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
134
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
135
|
+
this License, without any additional terms or conditions.
|
|
136
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
137
|
+
the terms of any separate license agreement you may have executed
|
|
138
|
+
with Licensor regarding such Contributions.
|
|
139
|
+
|
|
140
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
141
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
142
|
+
except as required for reasonable and customary use in describing the
|
|
143
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
144
|
+
|
|
145
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
146
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
147
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
148
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
149
|
+
implied, including, without limitation, any warranties or conditions
|
|
150
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
151
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
152
|
+
appropriateness of using or redistributing the Work and assume any
|
|
153
|
+
risks associated with Your exercise of permissions under this License.
|
|
154
|
+
|
|
155
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
156
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
157
|
+
unless required by applicable law (such as deliberate and grossly
|
|
158
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
159
|
+
liable to You for damages, including any direct, indirect, special,
|
|
160
|
+
incidental, or consequential damages of any character arising as a
|
|
161
|
+
result of this License or out of the use or inability to use the
|
|
162
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
163
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
164
|
+
other commercial damages or losses), even if such Contributor
|
|
165
|
+
has been advised of the possibility of such damages.
|
|
166
|
+
|
|
167
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
168
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
169
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
170
|
+
or other liability obligations and/or rights consistent with this
|
|
171
|
+
License. However, in accepting such obligations, You may act only
|
|
172
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
173
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
174
|
+
defend, and hold each Contributor harmless for any liability
|
|
175
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
176
|
+
of your accepting any such warranty or additional liability.
|
|
177
|
+
|
|
178
|
+
END OF TERMS AND CONDITIONS
|
|
179
|
+
|
|
180
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
181
|
+
|
|
182
|
+
To apply the Apache License to your work, attach the following
|
|
183
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
184
|
+
replaced with your own identifying information. (Don't include
|
|
185
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
186
|
+
comment syntax for the file format. We also recommend that a
|
|
187
|
+
file or class name and description of purpose be included on the
|
|
188
|
+
same "printed page" as the copyright notice for easier
|
|
189
|
+
identification within third-party archives.
|
|
190
|
+
|
|
191
|
+
Copyright [yyyy] [name of copyright owner]
|
|
192
|
+
|
|
193
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
|
+
you may not use this file except in compliance with the License.
|
|
195
|
+
You may obtain a copy of the License at
|
|
196
|
+
|
|
197
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
198
|
+
|
|
199
|
+
Unless required by applicable law or agreed to in writing, software
|
|
200
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
201
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
|
+
See the License for the specific language governing permissions and
|
|
203
|
+
limitations under the License.
|
whybook-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: whybook
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Whybook: a question-driven view of Jupyter notebooks
|
|
5
|
+
Project-URL: Homepage, https://github.com/openteams-ai/whybook
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/openteams-ai/whybook/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/openteams-ai/whybook.git
|
|
8
|
+
Author: Michal Krassowski
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: whybook/sandbox/codex/LICENSE
|
|
12
|
+
License-File: whybook/sandbox/codex/NOTICE
|
|
13
|
+
Keywords: jupyter,jupyterlab,jupyterlab-extension
|
|
14
|
+
Classifier: Framework :: Jupyter
|
|
15
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
16
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
17
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
18
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Requires-Dist: jupyter-server<3,>=2.13.0
|
|
28
|
+
Requires-Dist: jupyterlab-unfold>=0.3.4
|
|
29
|
+
Requires-Dist: jupyterlab<5,>=4.4.0
|
|
30
|
+
Provides-Extra: claude
|
|
31
|
+
Requires-Dist: claude-agent-sdk>=0.2.157; extra == 'claude'
|
|
32
|
+
Provides-Extra: demo
|
|
33
|
+
Requires-Dist: numpy; extra == 'demo'
|
|
34
|
+
Requires-Dist: pandas; extra == 'demo'
|
|
35
|
+
Requires-Dist: pyarrow; extra == 'demo'
|
|
36
|
+
Requires-Dist: statsmodels; extra == 'demo'
|
|
37
|
+
Provides-Extra: dev
|
|
38
|
+
Requires-Dist: jupyter-builder>=1.2.0; extra == 'dev'
|
|
39
|
+
Provides-Extra: docs
|
|
40
|
+
Requires-Dist: jupyter-book<3,>=2.1; extra == 'docs'
|
|
41
|
+
Provides-Extra: kernel
|
|
42
|
+
Requires-Dist: narwhals>=2; extra == 'kernel'
|
|
43
|
+
Provides-Extra: local
|
|
44
|
+
Requires-Dist: huggingface-hub; extra == 'local'
|
|
45
|
+
Requires-Dist: llama-cpp-python>=0.3.35; extra == 'local'
|
|
46
|
+
Provides-Extra: models
|
|
47
|
+
Requires-Dist: pydantic-ai-slim[anthropic,google,mistral,openrouter]<3,>=2.51; extra == 'models'
|
|
48
|
+
Provides-Extra: plots
|
|
49
|
+
Requires-Dist: ipywidgets>=8; extra == 'plots'
|
|
50
|
+
Requires-Dist: plotly>=6; extra == 'plots'
|
|
51
|
+
Requires-Dist: tqdm; extra == 'plots'
|
|
52
|
+
Provides-Extra: speech
|
|
53
|
+
Requires-Dist: moonshine-voice<0.2,>=0.1.5; extra == 'speech'
|
|
54
|
+
Provides-Extra: test
|
|
55
|
+
Requires-Dist: coverage; extra == 'test'
|
|
56
|
+
Requires-Dist: narwhals>=2; extra == 'test'
|
|
57
|
+
Requires-Dist: pandas; extra == 'test'
|
|
58
|
+
Requires-Dist: pytest; extra == 'test'
|
|
59
|
+
Requires-Dist: pytest-asyncio; extra == 'test'
|
|
60
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
61
|
+
Requires-Dist: pytest-jupyter[server]>=0.6.0; extra == 'test'
|
|
62
|
+
Description-Content-Type: text/markdown
|
|
63
|
+
|
|
64
|
+
# Whybook
|
|
65
|
+
|
|
66
|
+
> [!WARNING]
|
|
67
|
+
> **Research prototype.** Whybook is a research prototype for the future of Jupyter interfaces, and the text below is its pitch. Its features, settings and notebook metadata can change between releases without deprecation.
|
|
68
|
+
|
|
69
|
+
## You ask the questions. Agents write the code.
|
|
70
|
+
|
|
71
|
+
Whybook is a view of a Jupyter notebook for data analysis with AI. It has no chat box. The analyst drags a column onto a cell and picks one of the questions it offers, or types one of their own. The view writes the cell, places it and runs it. Every constant, default and choice behind the result is shown on the cell, where the analyst can question it.
|
|
72
|
+
|
|
73
|
+
- Any `.ipynb` opens in the view, next to the classic notebook.
|
|
74
|
+
- The first question offered usually runs from a template, with no model call.
|
|
75
|
+
- Branches run in parallel in kernel subshells.
|
|
76
|
+
|
|
77
|
+
![The Whybook view of the demo notebook in JupyterLab after Run all. Cell [4] carries the chips MIN_DAYS 14, inner join, ci bootstrap and n_boot 1000, and the Exploration panel counts the questions asked by type.](screenshots/bench.png)
|
|
78
|
+
|
|
79
|
+
## A notebook view built around questions
|
|
80
|
+
|
|
81
|
+
Whybook opens any `.ipynb` file as a second view, next to the classic notebook. Both views share one notebook model and one kernel, so an edit in one shows in the other. Agents do most of the work, under one rule: the result is an ordinary notebook, and the questions, choices and assumptions go into its metadata. The analyst chooses how deep to go on each cell: its question, the choices on its chips, or its code.
|
|
82
|
+
|
|
83
|
+
- **Ask by pointing at the data.** Anything in the Variables and Contents panels can be dragged onto a cell, a variable or a column, and so can files and database tables. The view lists up to eight ranked questions of five types, each with a place in the notebook. Most questions run code from a template at once, with no model call. For those marked needs AI, an AI writes the code.
|
|
84
|
+
- **Every choice in plain sight.** After a cell runs, the view reads its code against the live kernel and lists the values that the result depends on. Each value becomes a short chip, its name and its value, such as `MIN_DAYS 14`, or `inner join ×2` for two merges that keep pandas' default. Constants defined in imported files are shown on the cell that uses them.
|
|
85
|
+
- **Question the result.** Every mark of a plot drawn by the view's helpers maps to rows of its data frame. The view counts the rows behind a selection, reports what differs there and offers questions about it.
|
|
86
|
+
- **Branch in parallel, keep one line of cells.** Shift+drop turns any question into a branch, and Alt+drop starts several branches at once. Each branch runs in its own kernel subshell (JEP 91, ipykernel 7), so branches run in parallel on the same data without copying it. The notebook stays a single list of cells, and there is no reactive execution.
|
|
87
|
+
- **One question, as many cells as it needs.** When a question needs AI, an agent answers it in the notebook. It adds and runs the cells that the question needs, and it ends with an answer of a few sentences that links the cells that show it. Each cell is marked as written by AI, and one click removes the cells of a run.
|
|
88
|
+
|
|
89
|
+
![A selection of weeks 14 to 24 on the plot of cell [4]. The view counts 2,050 rows and 262 patients behind it, reports that A minus B is +1.86 there and +1.33 elsewhere, and offers three questions, each with its place in the notebook.](screenshots/plot-selection.png)
|
|
90
|
+
|
|
91
|
+
The data in the screenshots is synthetic: the demo cohort of `examples/pain_diary`.
|
|
92
|
+
|
|
93
|
+
## Requirements
|
|
94
|
+
|
|
95
|
+
- JupyterLab 4.4 or later, in the 4.x series. On 4.6 and later, the sections of the Whybook panel can also move to the file browser.
|
|
96
|
+
|
|
97
|
+
## Install
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
pip install "whybook[claude,kernel,demo,local,models,speach]"
|
|
101
|
+
jupyter lab
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`local` builds llama-cpp-python for the local models, with the system's C++ compiler, in about 4 minutes: without a compiler, leave it out of the list. To open a notebook in the view, right-click it in the file browser and choose Open With, Whybook. The demo notebook, `pain_diary_demo.ipynb`, is in this repository, with its data in `examples/pain_diary/`.
|
|
105
|
+
|
|
106
|
+
Once you connect a remote AI model, the view sends it each table that it shows as a tile, to get a label, and asks it for more questions at each drop or click. With the setting "Keep data on this machine", no values, tables or pictures leave the machine.
|
|
107
|
+
|
|
108
|
+
The extension is one Python package, `whybook`: the helpers a notebook imports (`import whybook`), the server extension (`whybook.server`) and the frontend extension of the same name. The view still reads the `epi` metadata and output types of notebooks from before 25 September 2026.
|
|
109
|
+
|
|
110
|
+
## Development
|
|
111
|
+
|
|
112
|
+
From a clone of this repository:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
pip install --editable ".[dev,test,claude,kernel,demo, speach]"
|
|
116
|
+
jupyter-builder develop . --overwrite
|
|
117
|
+
jupyter server extension enable whybook
|
|
118
|
+
jlpm build
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Run `jlpm build` again after each change to the TypeScript source, or keep `jlpm watch` running beside `jupyter lab`. The Python tests run with `pytest whybook/server/tests`, and the Jest tests with `jlpm test`. The integration tests are in `ui-tests/`, whose README has their commands.
|
|
122
|
+
|
|
123
|
+
## Uninstall
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pip uninstall whybook
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Troubleshoot
|
|
130
|
+
|
|
131
|
+
If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
jupyter server extension list
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
jupyter labextension list
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
Whybook is under the Apache License 2.0: see [LICENSE](LICENSE). The Seatbelt profiles in `whybook/sandbox/codex/` come from OpenAI Codex, under the same licence, with its LICENSE and NOTICE.
|
whybook-0.2.0/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Whybook
|
|
2
|
+
|
|
3
|
+
> [!WARNING]
|
|
4
|
+
> **Research prototype.** Whybook is a research prototype for the future of Jupyter interfaces, and the text below is its pitch. Its features, settings and notebook metadata can change between releases without deprecation.
|
|
5
|
+
|
|
6
|
+
## You ask the questions. Agents write the code.
|
|
7
|
+
|
|
8
|
+
Whybook is a view of a Jupyter notebook for data analysis with AI. It has no chat box. The analyst drags a column onto a cell and picks one of the questions it offers, or types one of their own. The view writes the cell, places it and runs it. Every constant, default and choice behind the result is shown on the cell, where the analyst can question it.
|
|
9
|
+
|
|
10
|
+
- Any `.ipynb` opens in the view, next to the classic notebook.
|
|
11
|
+
- The first question offered usually runs from a template, with no model call.
|
|
12
|
+
- Branches run in parallel in kernel subshells.
|
|
13
|
+
|
|
14
|
+
![The Whybook view of the demo notebook in JupyterLab after Run all. Cell [4] carries the chips MIN_DAYS 14, inner join, ci bootstrap and n_boot 1000, and the Exploration panel counts the questions asked by type.](screenshots/bench.png)
|
|
15
|
+
|
|
16
|
+
## A notebook view built around questions
|
|
17
|
+
|
|
18
|
+
Whybook opens any `.ipynb` file as a second view, next to the classic notebook. Both views share one notebook model and one kernel, so an edit in one shows in the other. Agents do most of the work, under one rule: the result is an ordinary notebook, and the questions, choices and assumptions go into its metadata. The analyst chooses how deep to go on each cell: its question, the choices on its chips, or its code.
|
|
19
|
+
|
|
20
|
+
- **Ask by pointing at the data.** Anything in the Variables and Contents panels can be dragged onto a cell, a variable or a column, and so can files and database tables. The view lists up to eight ranked questions of five types, each with a place in the notebook. Most questions run code from a template at once, with no model call. For those marked needs AI, an AI writes the code.
|
|
21
|
+
- **Every choice in plain sight.** After a cell runs, the view reads its code against the live kernel and lists the values that the result depends on. Each value becomes a short chip, its name and its value, such as `MIN_DAYS 14`, or `inner join ×2` for two merges that keep pandas' default. Constants defined in imported files are shown on the cell that uses them.
|
|
22
|
+
- **Question the result.** Every mark of a plot drawn by the view's helpers maps to rows of its data frame. The view counts the rows behind a selection, reports what differs there and offers questions about it.
|
|
23
|
+
- **Branch in parallel, keep one line of cells.** Shift+drop turns any question into a branch, and Alt+drop starts several branches at once. Each branch runs in its own kernel subshell (JEP 91, ipykernel 7), so branches run in parallel on the same data without copying it. The notebook stays a single list of cells, and there is no reactive execution.
|
|
24
|
+
- **One question, as many cells as it needs.** When a question needs AI, an agent answers it in the notebook. It adds and runs the cells that the question needs, and it ends with an answer of a few sentences that links the cells that show it. Each cell is marked as written by AI, and one click removes the cells of a run.
|
|
25
|
+
|
|
26
|
+
![A selection of weeks 14 to 24 on the plot of cell [4]. The view counts 2,050 rows and 262 patients behind it, reports that A minus B is +1.86 there and +1.33 elsewhere, and offers three questions, each with its place in the notebook.](screenshots/plot-selection.png)
|
|
27
|
+
|
|
28
|
+
The data in the screenshots is synthetic: the demo cohort of `examples/pain_diary`.
|
|
29
|
+
|
|
30
|
+
## Requirements
|
|
31
|
+
|
|
32
|
+
- JupyterLab 4.4 or later, in the 4.x series. On 4.6 and later, the sections of the Whybook panel can also move to the file browser.
|
|
33
|
+
|
|
34
|
+
## Install
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install "whybook[claude,kernel,demo,local,models,speach]"
|
|
38
|
+
jupyter lab
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`local` builds llama-cpp-python for the local models, with the system's C++ compiler, in about 4 minutes: without a compiler, leave it out of the list. To open a notebook in the view, right-click it in the file browser and choose Open With, Whybook. The demo notebook, `pain_diary_demo.ipynb`, is in this repository, with its data in `examples/pain_diary/`.
|
|
42
|
+
|
|
43
|
+
Once you connect a remote AI model, the view sends it each table that it shows as a tile, to get a label, and asks it for more questions at each drop or click. With the setting "Keep data on this machine", no values, tables or pictures leave the machine.
|
|
44
|
+
|
|
45
|
+
The extension is one Python package, `whybook`: the helpers a notebook imports (`import whybook`), the server extension (`whybook.server`) and the frontend extension of the same name. The view still reads the `epi` metadata and output types of notebooks from before 25 September 2026.
|
|
46
|
+
|
|
47
|
+
## Development
|
|
48
|
+
|
|
49
|
+
From a clone of this repository:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip install --editable ".[dev,test,claude,kernel,demo, speach]"
|
|
53
|
+
jupyter-builder develop . --overwrite
|
|
54
|
+
jupyter server extension enable whybook
|
|
55
|
+
jlpm build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Run `jlpm build` again after each change to the TypeScript source, or keep `jlpm watch` running beside `jupyter lab`. The Python tests run with `pytest whybook/server/tests`, and the Jest tests with `jlpm test`. The integration tests are in `ui-tests/`, whose README has their commands.
|
|
59
|
+
|
|
60
|
+
## Uninstall
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip uninstall whybook
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Troubleshoot
|
|
67
|
+
|
|
68
|
+
If you are seeing the frontend extension, but it is not working, check that the server extension is enabled:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
jupyter server extension list
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
If the server extension is installed and enabled, but you are not seeing the frontend extension, check the frontend extension is installed:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
jupyter labextension list
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
Whybook is under the Apache License 2.0: see [LICENSE](LICENSE). The Seatbelt profiles in `whybook/sandbox/codex/` come from OpenAI Codex, under the same licence, with its LICENSE and NOTICE.
|