Skip to content

Support find all references and rename with notebooks #177391

@rchiodo

Description

@rchiodo

Notebooks can pull in python imports into their cells.

Like so:

test.py:

def foo():
    print('foo')

test.ipynb: cell

import test
foo()

When writing a language server, it would be nice to support renaming and find all references such that these renames get applied to python cells in a notebook too.

In order for a language server to implement this it needs to predict the URI of cells in a notebook though. Otherwise the rename responses will have invalid URIs.

So this request is really to expose an API to give back the URI for cells of a notebook.

Metadata

Metadata

Assignees

Labels

notebookunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions