Skip to content

nctoolkit plot can not show figure in jupyter lab #115

@onion5376

Description

@onion5376

I am new user of nctoolkit, so I follow the tutorial (https://nctoolkit.readthedocs.io/en/v1.1.11/visualization.html) to study this package.

My code is listed as following:

import nctoolkit as nc
ff = "/media/sf_E_DRIVE/Data/copernicus/sst.mon.mean.nc"
ds = nc.open_data(ff)
ds.spatial_mean()
ds.assign_coords(lon_name = "lon",lat_name = "lat")
ds.plot()

I had try use matlibplot to test the figure in jupyterlab,but it could work well,code is listed as following:

import matplotlib.pyplot as plt
plt.plot([1,2],[1,3])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions