The command render does not display my environment


I am a beginner in reinforcement learning. I tried a simple part of a code where I used the command line
env.render() (included in for loop) (I added also env.close() at the end). however nothing is displayed. I am using the latest version of python, jupyter notebook and I am working on windows 10. I tried a couple of tricks like using older versions of python (3.6,3.7) changing the version of pyglet aswell but nothing changes. If anyone of you have an idea to solve this issue I am here to listen !

Thank you.