Skip to content

Commit

Permalink
populate notebook filepath from notebookwatcher if needed (#15336)
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger authored Mar 11, 2024
1 parent e0dc301 commit 3e9053c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webviews/extension-side/variablesView/variableView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class VariableView extends WebviewViewHost<IVariableViewPanelMapping> imp
// Handle a request from the react UI to show our data viewer. Public for testing
@swallowExceptions()
public async showDataViewer(request: IShowDataViewer) {
request.variable.fileName = request.variable.fileName ?? this.notebookWatcher.activeKernel?.notebook.uri;
try {
if (this.experiments.inExperiment(Experiments.DataViewerContribution)) {
// jupyterVariableViewers
Expand Down

0 comments on commit 3e9053c

Please sign in to comment.