Issue regarding cartopy library in mac system

I am using jupyter notebook in macos. Well, I have an issue with cartopy library. When I try to plot a map of coastline it gives the error “an integer is required”. I could not figure out this. Anybody have faced this issue? Any help will be highly appreciated

This doesn’t sound specifically pertinent to Jupyter, unless you can provide more reasoning why it is? To put it another way, it seems like this would happen if you were working directly with Python or IPython wihtout Jupyter being involved.
It sounds like this would be best posted at any cartopy user group or as an issue at the related developer’s repository.
You may wish to post a minimal reproducible example along with it as well in those other locations. See Getting good answers to your questions as good general guide. Most of the suggestions hold for posting at other places, too.