nir / jupylet

Python game programming in Jupyter notebooks.
https://jupylet.readthedocs.io
BSD 2-Clause "Simplified" License
230 stars 22 forks source link

NameError: name 'sys' is not defined in env.py #17

Closed fatenghriss closed 4 years ago

fatenghriss commented 4 years ago

Hello

I have just tried to integrate jupylet into my script. However I am getting the following error: packages/jupylet/env.py:68: in has_display if 'pyglet' in sys.modules: E NameError: name 'sys' is not defined when simply importing jupylet

It has been fixed for me by simply adding import sys in the head of that file locally.

Could you please fix that on the file?

Thanks!

nir commented 4 years ago

I merged your fix - https://github.com/nir/jupylet/commit/fc26854ef24dd7fb4d2fd554d98b7cc2334935a5

Thanks so much!