Türkçe
Modern apps in a notebook cell, in plain Python
Write the app in Python: boxes, texts, buttons, tables and charts appear in the output of the cell and keep working while you go on with the notebook. Only Python: no JavaScript, no HTML, no CSS.
v0.1.1 · experimental · Python 3.9+ · tried in JupyterLab 4.5 and Notebook 7.5 · 53 components with a Python class · all 88 of basic.js by name · the classes of OzdenUI for Python · Apache 2.0
The handbook: from the first app to a component of your own, in English and Turkish.
A counter in one cell
Groups place the objects for you, and a function given to a button runs in Python, in the kernel, when it is clicked.
- with blocks. The objects of a with block go into its group: the shape of the code is the shape of the app.
- Values in Python. count.text is read in Python, with no question to the page. Setting it changes the app at once.
- The app goes on. Its events and timers run after the cell. A later cell can read its values and change it; running its cell again makes it again.
One package, its own frame, easy to read
- One package. basic.js and its components come inside, and anywidget shows the app. A component goes to the page only when the app uses it, so a far kernel sends little.
- An app in its own frame. Each app is a page of its own in the output of its cell: basic.js has the whole page, and the notebook around it stays as it is.
- Code that reads like the app. with blocks for groups, the names of basic.js, values read back without asking the page. What the app prints goes under it; an error names your cell and line.
- Components ready. 53 components have a Python class: buttons, fields, lists, a table, a chart, dialogs. All 88 of basic.js work with Component().
Ready components, Python classes
SmartButton, TextField, EmailField, PasswordField, NumberField, UrlField, PhoneField, CurrencyField, TextAreaField, TagInput, SearchInput, CheckBox, Toggle, RadioButton, SelectBox, Slider, RangeSlider, SliderField, Stepper, DatePicker, TimePicker, ColorPicker, FilePicker, ProgressBar, StepBar, LoadingScreen, Canvas, ItemList, SortableList, SmartTable, DataTable, TreeView, Tabs, Accordion, SidePanel, ScrollArea, GridGroup, GraphBox, LogView, ImageView, MarkdownView, JsonView, JsonEditor, ChatView, WebView, MenuBar, ToolBar, ContextMenu, StatusBar, Splitter, CodeEditor, Tooltip, Dialog and Toast. Each one takes its params in snake_case and a Python function for a callback. theme="auto" takes the theme of the notebook.
A component of your own, in plain Python
A class that makes its objects in a with block is a component: use it again and again, change it with its methods, keep it in a .py file next to the notebook. No JavaScript is needed.
A dialog that returns its answer
Dialog.confirm() waits for the answer and returns it, like input(), in the functions of the app (a click, a timer, a background job). The app keeps working meanwhile.
Twenty example notebooks
Counter, Greeting, To do, A sign-up form, Calculator, Dialogs, Files of the kernel, Upload a CSV, A long cell, Gallery, A DataFrame, Charts, Plot explorer, A dashboard, A chat, Documents, The minimal look, A game, Photos and Paint, in the examples folder of the source. Each one is checked in a real JupyterLab.
Where it fits
A good choice for a small app over your data, for teaching Python with something to see and to click, and for a dashboard in a notebook. For a window of its own on the desktop, OzdenUI for Python has the same classes; for a web application for many users, a web framework is better.
Files: two computers
FilePicker brings the files of the person to the kernel; open_file(), save_file() and choose_folder() show the files of the kernel in a dialog of the app; download() gives a file to the browser.
Three steps
- Install. Not on PyPI yet. Until then, install it from its source folder, in a virtual environment, with JupyterLab. It brings anywidget, which shows the app in the output of a cell.
- Write start(page) in a cell. Make the objects of the app in it. The last line of the cell, App(start), shows the app.
- Run the cell. The app appears under the cell and goes on working.
OzdenUI for Jupyter is open source under the Apache 2.0 license. This page is built with basic.js. Developed with the help of Claude Code (Anthropic). © 2020–2026 Buğra Özden.