thebe is composed of several packages setup within a monorepo enabling easy builds of all modules while making local changes across them. thebe uses npm as package manager and turborepo for builds and is written in typescript.
The main thebe packages are located in packages/ and are:
thebe-core- object based API for connecting to and executing against juptyer serversthebe-lite- a side-loaded extension tothebe-coreenabling use of aJupyterLiteServerthebe- top-level library for use directly in html pages
Additional packages in apps/ are:
demo-core- a plain html/js using thethebe-coreAPIsimple- simplest possible html/js demo of usingthebedocs- thethebedocumentation build
Setup¶
Install node@16 and npm@8 or above
Building Thebe¶
The following commands should be issued from the repository root.
npm install
npm run buildThis will install dependencies and run a turborepo build, building all packages.
To build the demos, run:
npm run demoThen start a demo using one of:
npm run start:simplenpm run start:core