Repository navigation
Panel studio: follow a file; panel-preview, panel-upload, panel-download - #31
Merged
Merged
Conversation
For people who write panels in their own editor: - Follow file (panel-studio): reloads the panel file each time it's saved and runs the panel again; while following, the studio's code is read-only so it never overwrites the file. - cometx panel-preview FILE --project P: just the panel, in the browser, run again on every save. --experiments takes a count (25 by default, like a dashboard), "all", or names/keys; --sort orders them first. - cometx panel-upload FILE (--dashboard NAME --project P | --library): the studio's upload, from the command line, so it can also run in CI. - cometx panel-download (--dashboard NAME --project P | --library) [--name PANEL] [-o FILE]: fetch a panel's code to edit. A changed file is read only once it has stopped changing, since editors often save by emptying a file and then writing it. panel-preview stops on SIGTERM as on Ctrl-C, so its temp folder (holding the API key) is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
| Topic | Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Panel CLI transfer | Provide scriptable commands to upload Python panels to dashboards or the library and download panel code with selection, overwrite protection, workspace resolution, and helpful errors.Modified files (7)
Latest Contributors(2)
| |||||||||
| Live panel editing | Enable editors to follow and preview panel files, reloading settled changes and rerunning panels while keeping followed studio code read-only and handling clean shutdown.Modified files (5)
Latest Contributors(2)
|
…entials - A file's signature now includes a hash of its contents, so a save that keeps the same size within one timestamp tick isn't missed. - --port and --panel-port only take 1-65535, with a clear error. - panel-preview exits with "Could not read the file" for a folder or a missing file, and reads the file only once it isn't mid-save. - --api-key and --url-override given before the command (cometx --api-key KEY panel-preview ...) are no longer replaced by the subcommand's empty defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
For people who write Comet Python panels in their own editor (VS Code, vim, ...), building on
cometx panel-studio(#30):panel-studio: open a file, turn on Follow file, and each save in your own editor reloads the code and runs the panel again (within about a second). While following, the studio's code is read-only and Save is off, so it never overwrites the file.cometx panel-preview FILE --project P: just the panel, in your browser, run again on every save. No studio UI.--experiments: a count (25 by default, like a dashboard's first page),all, or names/keys/key prefixes separated by commas;--sort updated|nameorders them first.cometx panel-upload/cometx panel-download: the studio's upload from the command line (scriptable, e.g. for CI), and fetching a panel's code to edit.-owithout--force.PANEL-STUDIO.mdhas a new "Using your own editor" section, and the README lists the commands.Details
panel-previewstops on SIGTERM as on Ctrl-C, so the panel server stops and its temp folder (which holds the API key) is removed.--api-key/--url-override, the temp folder) moved into helpers incli/panel_studio.py.Testing
tests/unit/test_panel_files.pycovers experiment choosing, settled reads (including a file changing mid-read), dashboard and library lookups, workspace resolution, and the upload/download commands.--name; library upload and download; the multi-panel and overwrite errors. Also with released comet_ml 3.58.8.panel-previewin headless Chrome: the open page went from v1 to v2 after the file was saved, with the requested 3 experiments; SIGTERM stopped it and removed its temp folder.🤖 Generated with Claude Code