Reset the default directory in scanpy.pl.umap(save)

Hi,

I’m using google colab. I tried to save the umap by:

scanpy.pl.umap(anndata, save = ‘/content/drive/MyDrive/somepic.png’)

However, it failed to save the image and returned:

FileNotFoundError: [Errno 2] No such file or directory: ‘figures/show/content/drive/MyDrive/somepic.png’

When I directly enter:

scanpy.pl.umap(anndata, save = True)

It created a parallel figure folder from my google drive/content folder and returned:

saving figure to file figures/show.pdf

Does anyone have any solution to change the default directory and file extension (from .pdf to .png)?

Thanks in advance