hifarrer opened a new pull request, #994: URL: https://github.com/apache/burr/pull/994
Corrects the notebook docs for the `%burr_ui` magic. It says it prints the URL of the UI, but since the iframe support (d0db4e88, Nov 2024) it embeds the UI below the cell and only prints the URL with `--no-iframe`. Related to #272 (it does not close it). ## Changes - `docs/ui/notebook.rst`: describe the iframe default, the background server on port 7241 that later calls reuse, and the `--height`/`-h` and `--no-iframe` options. - `docs/concepts/tracking.rst`: correct the intro and the example, and link to the notebook page. ## How I tested this Checked with Claude Code, which ran these on Windows 11 / Python 3.13: - Ran `%burr_ui` in a real Jupyter kernel against the released `apache-burr` 0.43.0. It showed an iframe with height 400. `--height 600` and `-h 555` changed the height. `--no-iframe` printed `Burr UI: http://127.0.0.1:7241`. Repeated calls reused the same server process. - Built the docs with the CI command (`python -m sphinx -T -W --keep-going -b dirhtml ...`). It passes before and after, and I read the rendered HTML of both sections. - `pre-commit run --all-files` gives the same result before and after. The changed files pass. Black fails on two example files I did not touch, and it fails the same way on `main`. ## Notes - The Colab snippet is unchanged and untested. It may no longer be needed, because the code puts Colab's proxied URL in the iframe. - The sentence about the server restarting if its process exited is from reading `burr/integrations/notebook.py`, not from running it. - Separate from this PR: the magic starts the server with a bare `python`. On my Windows setup that picked an interpreter without burr, so the iframe stayed blank. That is tracked in #981 / #982 and is not fixed here. - This text was drafted with Claude Code and reviewed by me. ## Checklist - [x] PR has an informative and human-readable title (this will be pulled into the release notes) - [x] Changes are limited to a single goal (no scope creep) - [x] Code passed the pre-commit check & code is left cleaner/nicer than when first encountered. - [ ] Any _change_ in functionality is tested (N/A, docs only) - [ ] New functions are documented (with a description, list of inputs, and expected output) (N/A, no code) - [ ] Placeholder code is flagged / future TODOs are captured in comments (N/A, no code) - [x] Project documentation has been updated if adding/changing functionality. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
