Skip to content

Plots are matching the theme in blackout using R #16714

Open
@GaelanVenturi

Description

@GaelanVenturi

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Using Jupyter Notebook in VS Code with the R language. The plots generated by the Jupyter Notebook match the theme of VS Code. This causes them to be unreadable. I am using the Catppuccin theme; however, this occurs with the default VS Code theme as well.

Image

Image

With the default theme

Image

VS Code Version

Version: 1.101.0-insider Commit: 921786be45c46b54e727aa4f210819bbc6430a6d Date: 2025-06-06T00:25:36.239Z Electron: 35.5.1 ElectronBuildId: 11708675 Chromium: 134.0.6998.205 Node.js: 22.15.1 V8: 13.4.114.21-electron.0 OS: Windows_NT x64 10.0.22631

Jupyter Extension Version

2025.5.2025060601

Jupyter logs

Visual Studio Code - Insiders (1.101.0-insider, undefined, desktop)
Jupyter Extension Version: 2025.5.2025060601.
Python Extension Version: 2025.7.2025060501.
Python Environment Extension not installed.
Pylance Extension Version: 2025.5.1.
Platform: win32 (x64).
Home = c:\Users\gaelan.venturi
Temp Storage folder ~\scoop\apps\vscode-insiders\1.101.0-1749169542272\data\user-data\User\globalStorage\ms-toolsai.jupyter\version-2025.5.2025060601
Workspace folder g:\My Drive\edie\compsci_25_26\w02\r-basics
07:47:16.549 [info] Telemetry level is off
07:47:16.549 [info] Experiments are disabled, only manually opted experiments are active.
07:47:16.549 [info] User belongs to experiment group 'DoNotWaitForZmqPortsToBeUsed'
07:47:16.632 [info] Deleting old temp dir ~\scoop\apps\vscode-insiders\1.101.0-1749169542272\data\user-data\User\globalStorage\ms-toolsai.jupyter\version-2025.5.2025060501
07:47:17.357 [info] Starting Kernel (R) for 'g:\My Drive\edie\compsci_25_26\w02\r-basics\src\r-basics-one.ipynb' (disableUI=true)
07:47:17.454 [error] Unable to determine the caller of the extension API for trace stack Error: 
    at Hg.determineExtensionFromCallStack (~\scoop\persist\vscode-insiders\data\extensions\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\dist\extension.node.js:182:5083)
    at Object.createJupyterServerCollection (~\scoop\persist\vscode-insiders\data\extensions\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\dist\extension.node.js:181:31674)
    at Qa.<anonymous> (~\scoop\persist\vscode-insiders\data\extensions\github.codespaces-1.17.3\src\constants\dependencies.ts:71:69)
    at Generator.next (<anonymous>)
    at fulfilled (~\scoop\persist\vscode-insiders\data\extensions\github.codespaces-1.17.3\out\bundle\extension-node.js:362:89209)
07:47:17.454 [error] Jupyter Root file:///c%3a/users/<username>/scoop/apps/vscode-insiders/1.101.0-1749169542272/data/extensions/ms-toolsai.jupyter-2025.5.2025060601-win32-x64
07:47:17.454 [error] Frames [
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\\dist\\extension.node.js',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\\dist\\extension.node.js',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\github.codespaces-1.17.3\\src\\constants\\dependencies.ts',
  '<anonymous>',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\github.codespaces-1.17.3\\out\\bundle\\extension-node.js',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\\dist\\extension.node.js',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\ms-toolsai.jupyter-2025.5.2025060601-win32-x64\\dist\\extension.node.js',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\github.codespaces-1.17.3\\src\\constants\\dependencies.ts',
  'C:\\Users\\<username>\\scoop\\persist\\vscode-insiders\\data\\extensions\\github.codespaces-1.17.3\\out\\bundle\\extension-node.js'
]
07:47:17.478 [info] Launching Raw Kernel R # C:/Users/<username>/scoop/apps/r/current/bin/x64/R
07:47:17.488 [info] Process Execution: ~\scoop\apps\r\current\bin\x64\R --slave -e IRkernel::main() --args ~\AppData\Roaming\jupyter\runtime\kernel-v32cc38082d9b15f3eb064de05a17e55ff1b20bdf1.json
    > cwd: g:\My Drive\edie\compsci_25_26\w02\r-basics\src
07:47:18.388 [error] Widget Error: Failed to access CDN https://unpkg.com/ after 0 attempt(s), TypeError: Failed to fetch
07:47:18.767 [info] Kernel successfully started
07:47:18.769 [warn] No nbextensions folder found for kernel .ir.~\scoop\apps\r\current\bin\x64\R.\.c:/users/<username>/scoop/apps/r/current/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}
07:48:34.245 [info] Dispose Kernel 'g:\My Drive\edie\compsci_25_26\w02\r-basics\src\r-basics-one.ipynb' associated with 'g:\My Drive\edie\compsci_25_26\w02\r-basics\src\r-basics-one.ipynb'
07:48:34.252 [info] Process Execution: c:\WINDOWS\System32\taskkill.exe /F /T /PID 17508
07:48:47.662 [info] Starting Kernel (R) for 'g:\My Drive\edie\compsci_25_26\w02\r-basics\src\data_demo_one.ipynb' (disableUI=true)
07:48:47.712 [info] Launching Raw Kernel R # C:/Users/<username>/scoop/apps/r/current/bin/x64/R
07:48:47.721 [info] Process Execution: ~\scoop\apps\r\current\bin\x64\R --slave -e IRkernel::main() --args ~\AppData\Roaming\jupyter\runtime\kernel-v3c43e7a71fd9d370287c5062ef691dc7f62fc98f6.json
    > cwd: g:\My Drive\edie\compsci_25_26\w02\r-basics\src
07:48:48.474 [error] Widget Error: Failed to access CDN https://unpkg.com/ after 0 attempt(s), TypeError: Failed to fetch
07:48:48.831 [info] Kernel successfully started
07:48:48.832 [warn] No nbextensions folder found for kernel .ir.~\scoop\apps\r\current\bin\x64\R.\.c:/users/<username>/scoop/apps/r/current/bin/x64/r#--slave#-e#irkernel::main()#--args#{connection_file}

Coding Language and Runtime Version

R

Language Extension Version (if applicable)

R Extension 2.8.6

Anaconda Version (if applicable)

N/A

Running Jupyter locally or remotely?

Local

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions