Reset the default directory in


I’m using google colab. I tried to save the umap by:, 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:, 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