Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to show metadata associated with code block? #1360

Open
jlewi opened this issue May 19, 2024 · 3 comments
Open

Command to show metadata associated with code block? #1360

jlewi opened this issue May 19, 2024 · 3 comments

Comments

@jlewi
Copy link
Contributor

jlewi commented May 19, 2024

I think it might be helpful if there was a command to display cell metadata.

The main use case is as a runme developer being able to inspect metadata and in particular the id associated with a particular cell block.

I can do this today by opening the raw markdown in a text editor. So arguably a command to display it wouldn't add much value.

Is there another way to easily view the metadata associated with a code block?

I found this older issue about an Annotations UI (#97). I'm not sure if annotations are the same as metadata. I also don't see an Annotations tab in the current version of Runme.

@sourishkrout
Copy link
Member

sourishkrout commented May 20, 2024

I found this older issue about an Annotations UI (#97). I'm not sure if annotations are the same as metadata. I also don't see an Annotations tab in the current version of Runme.

@jlewi you can see the "Configure" foldout aka "annotations tab" (below), right? Just checking. It does not show all available metadata; just the most important config switches (which are stored in the metadata). However, we could add a third section "Metadata" that display the entire raw metadata in dev or when a debug's flag is on.

image

@jlewi
Copy link
Contributor Author

jlewi commented May 20, 2024

Yup that works.

@sourishkrout
Copy link
Member

sourishkrout commented May 22, 2024

Yup that works.

Actually I have a somewhat cleaner solution which is just relying on notebook renderers. It'll be available in the next patch release of the extension. Please note that the renderer selection is sticky and the cell metadata reflects the state of when the "Configure" action was executed last.

Cell.matadata.20240522.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants