I have the following code that works fine in Jupyter notebook:
import os import json import random import requests from ipyleaflet import Map, GeoJSON, Layer