Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

836
Visualizações
Error loading preloads: Could not find renderer

I am running jupyter notebook in vscode. But when I try to run the following cell of code I got error.

import os
from torch.utils.data import DataLoader
from torchvision.datasets import ImageFolder
import torchvision.transforms as tt
import torch
import torch.nn as nn
import cv2
from tqdm.notebook import tqdm
import torch.nn.functional as F
from torchvision.utils import save_image
from torchvision.utils import make_grid
import matplotlib.pyplot as plt
%matplotlib inline

The error is

Error loading preloads:
Could not find renderer

I tried but could not find its solution on the internet. How can I resolve this issue?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

I am having the same issue with the latest release of the VS code Jupyer extension. The fix for now is to just go to the Jupyter extension tab, then the button that says "Uninstall," click the down arrow and hit "Install Another Version" and just install the version from > 1 mo ago and it should work fine. Hopefully they'll resolve this issue in the latest version soon.

over 4 years ago · Santiago Trujillo Relatório

0

  1. Install/reinstall Jupyter Notebook Renderers Extension

  2. Reload Window

    Open the Command Palette (Ctrl + Shift + P)
    Then type: Reload Window

If this still doesn't work, make sure plot presentation is set to:

image/png
Jupyter Notebook Renderer (ms-toolsai.jupyter-renderers)

Change Presentation

Select Renderer

You should now be able to generate a plot in the interactive window. Hovering over the plot will give options to expand or save.

To get a better looking plot when zoomed in enable the "Jupyter: Generate SVGPlots" setting in the "Jupyter" extension and reload the window again. Then change the plot presentation to:

image/svg+xml
Jupyter Notebook Renderer (ms-toolsai.jupyter-renderers)
over 4 years ago · Santiago Trujillo Relatório

0

From the github issue: Renderer extension not being installed -- causes some packages not to work, like plotly. It should have been fixed in new release because the issue was closed on 14 Jan.

Run this code and see if the question goes away:

import plotly.io as pio
pio.renderers.default = 'iframe_connected'

OR

You may try to uninstall Jupyter extension completely by deleting its packages in the folder \...\.vscode\extensions\ms-toolsai.jupyter then reinstall the latest version.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda