|
710 | 710 | { |
711 | 711 | "command": "jupyter.restartkernel", |
712 | 712 | "group": "navigation/execute@5", |
713 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.kernel.isjupyter" |
| 713 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted && jupyter.kernel.isjupyter" |
714 | 714 | }, |
715 | 715 | { |
716 | 716 | "command": "jupyter.openVariableView", |
717 | 717 | "group": "navigation@1", |
718 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.ispythonnotebook && jupyter.kernel.isjupyter" |
| 718 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted && jupyter.ispythonnotebook && jupyter.kernel.isjupyter" |
719 | 719 | }, |
720 | 720 | { |
721 | 721 | "command": "jupyter.openOutlineView", |
722 | 722 | "group": "navigation@2", |
723 | | - "when": "notebookType == 'jupyter-notebook' && config.jupyter.showOutlineButtonInNotebookToolbar" |
| 723 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && config.jupyter.showOutlineButtonInNotebookToolbar" |
724 | 724 | }, |
725 | 725 | { |
726 | 726 | "command": "jupyter.continueEditSessionInCodespace", |
727 | 727 | "group": "navigation@3", |
728 | | - "when": "notebookType == 'jupyter-notebook' && jupyter.kernelSource == 'github-codespaces'" |
| 728 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && jupyter.kernelSource == 'github-codespaces'" |
729 | 729 | }, |
730 | 730 | { |
731 | 731 | "command": "jupyter.notebookeditor.export", |
732 | 732 | "group": "Jupyter", |
733 | | - "when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted" |
| 733 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted" |
734 | 734 | }, |
735 | 735 | { |
736 | 736 | "command": "jupyter.replayPylanceLogStep", |
737 | 737 | "group": "navigation@1", |
738 | | - "when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.replayLogLoaded" |
| 738 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted && jupyter.replayLogLoaded" |
739 | 739 | } |
740 | 740 | ], |
741 | 741 | "notebook/cell/title": [ |
742 | 742 | { |
743 | 743 | "command": "jupyter.runByLine", |
744 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == jupyter-notebook && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted && resource not in jupyter.notebookeditor.runByLineDocuments || !notebookKernel && notebookType == jupyter-notebook && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted", |
| 744 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == jupyter-notebook && notebookType != deepnote && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted && resource not in jupyter.notebookeditor.runByLineDocuments || !notebookKernel && notebookType == jupyter-notebook && notebookType != deepnote && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted", |
745 | 745 | "group": "inline/cell@0" |
746 | 746 | }, |
747 | 747 | { |
748 | 748 | "command": "jupyter.runByLineNext", |
749 | | - "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells", |
| 749 | + "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells && notebookType != deepnote", |
750 | 750 | "group": "inline/cell@0" |
751 | 751 | }, |
752 | 752 | { |
753 | 753 | "command": "jupyter.runByLineStop", |
754 | | - "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells && notebookCellToolbarLocation == left", |
| 754 | + "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells && notebookType != deepnote && notebookCellToolbarLocation == left", |
755 | 755 | "group": "inline/cell@1" |
756 | 756 | }, |
757 | 757 | { |
758 | 758 | "command": "jupyter.runByLineStop", |
759 | | - "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells && notebookCellToolbarLocation == right", |
| 759 | + "when": "notebookCellResource in jupyter.notebookeditor.runByLineCells && notebookType != deepnote && notebookCellToolbarLocation == right", |
760 | 760 | "group": "inline/cell@0" |
761 | 761 | }, |
762 | 762 | { |
763 | 763 | "command": "jupyter.selectPrecedentCells", |
764 | | - "when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
| 764 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
765 | 765 | "group": "executionAnalysis@0" |
766 | 766 | }, |
767 | 767 | { |
768 | 768 | "command": "jupyter.selectDependentCells", |
769 | | - "when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
| 769 | + "when": "notebookType == 'jupyter-notebook' && notebookType != 'deepnote' && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
770 | 770 | "group": "executionAnalysis@1" |
771 | 771 | } |
772 | 772 | ], |
773 | 773 | "notebook/cell/execute": [ |
774 | 774 | { |
775 | 775 | "command": "jupyter.runAndDebugCell", |
776 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted && resource not in jupyter.notebookeditor.debugDocuments || !notebookKernel && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted", |
| 776 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookType != deepnote && notebookCellType == code && isWorkspaceTrusted && resource not in jupyter.notebookeditor.debugDocuments || !notebookKernel && jupyter.ispythonnotebook && notebookType != deepnote && notebookCellType == code && isWorkspaceTrusted", |
777 | 777 | "group": "jupyterCellExecute@0" |
778 | 778 | }, |
779 | 779 | { |
780 | 780 | "command": "jupyter.runPrecedentCells", |
781 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
| 781 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookType != deepnote && notebookCellType == code && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
782 | 782 | "group": "jupyterCellExecute@1" |
783 | 783 | }, |
784 | 784 | { |
785 | 785 | "command": "jupyter.runDependentCells", |
786 | | - "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookCellType == code && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
| 786 | + "when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && jupyter.ispythonnotebook && notebookType != deepnote && notebookCellType == code && isWorkspaceTrusted && config.jupyter.executionAnalysis.enabled", |
787 | 787 | "group": "jupyterCellExecute@2" |
788 | 788 | } |
789 | 789 | ], |
|
0 commit comments