feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Search for notebook imports

Open mootari opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

As an author of notebooks that expose APIs I often need to know if/how these APIs are used in other notebooks in order to plan enhancements or breaking changes.

Right now I cannot explicitely search for imports, as a search for "@user/slug" will also produce results that only contain the text (e.g. as part of a URL).

Describe the solution you'd like

Add a search prefix import: to match the phrase to notebook imports. Searching for import:@user/slug will only match notebooks that import from the notebook @user/slug.

mootari avatar Mar 16 '22 23:03 mootari

I would go further and say all imports should create a biderectional link in the other direction with some kind of discovery support (e.g. a see usages menu in notebook)

The biderectional link is quite an important concept in the tools for thought community, I think we should have an analogue in observable which could help a little with discovery

https://twitter.com/tangjeff0/status/1476284523591524352

tomlarkworthy avatar Jul 04 '22 07:07 tomlarkworthy

crosslinking to https://github.com/observablehq/feedback/issues/70. good thing github will make a bidirectional link so that thread shows a link to this one! 😛

tophtucker avatar Jul 20 '22 14:07 tophtucker

We now have a feature in the header of a notebook (for notebook editors) for this!

image

When you click on it, you get a list of the notebooks that import from the current notebook.

CobusT avatar Apr 25 '23 23:04 CobusT