AminHP / gym-anytrading

The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
MIT License
2.1k stars 465 forks source link

How do you use your init.py to register it to gym? #14

Closed toksis closed 4 years ago

toksis commented 4 years ago

How to register gym-anytrading env to Gym?

I see that you have the init.py. How do you do this?

Thank you, Vic

AminHP commented 4 years ago

When you import gym_anytrading, Python will automatically import the __init__.py file in the root directory of the module. So, all you need is just importing the module and it will be registered in the gym automatically.

toksis commented 4 years ago

Oh! thank you!