Skip to content

add handling for notebook-cells as inputs to API#293

Merged
eleanorjboyd merged 5 commits intomicrosoft:mainfrom
eleanorjboyd:purple-people-eater
Apr 11, 2025
Merged

add handling for notebook-cells as inputs to API#293
eleanorjboyd merged 5 commits intomicrosoft:mainfrom
eleanorjboyd:purple-people-eater

Conversation

@eleanorjboyd
Copy link
Copy Markdown
Member

fixes #278

@eleanorjboyd eleanorjboyd self-assigned this Apr 11, 2025
@eleanorjboyd eleanorjboyd added this to the April 2025 milestone Apr 11, 2025
@eleanorjboyd eleanorjboyd added the debt Code quality issues label Apr 11, 2025
@vs-code-engineering
Copy link
Copy Markdown

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

Comment thread src/features/pythonApi.ts Outdated
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) April 11, 2025 21:11
@eleanorjboyd eleanorjboyd merged commit d3d4575 into microsoft:main Apr 11, 2025
6 checks passed
export function checkUri(scope?: Uri | Uri[] | string): Uri | Uri[] | string | undefined {
if (scope instanceof Uri) {
if (scope.scheme === 'vscode-notebook-cell') {
return Uri.from({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eleanorjboyd this isn't a valid notebook uri
haven't looked at the code, perhaps this has some meaning in this extension
However of you want to find the notebook Uri, you must iterate through all notebooks and find the notebook that has a cell with the matching Uri .

NguyenCuong1989 referenced this pull request in NguyenCuong1989/vscode-python-environments Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add uri handling for notebooks and cells

3 participants