huggingface / huggingface/openenv-course
module 1 notebook is full of bugs
- Dominant language
- Jupyter Notebook
- Stars
- 88
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Description
I was trying to run this [notebook](https://github.com/huggingface/openenv-course/blob/main/module-1/notebook.ipynb) from module 1 in **Google Colab** but apart from the first cell which installs the necessary libraries:
```
# Install dependencies
!pip install -q openenv-core
```
every other cell in the notebook breaks.
***
Below is one example:
#### 1. Echo environment:
cell
```python
from envs.echo_env import EchoEnv, EchoAction
# Connect to the hosted Echo environment
with EchoEnv(base_url="https://openenv-echo-env.hf.space").sync() as env:
# reset() starts a new episode
result = env.reset()
print("After reset:")
print(f" Observation: {result.observation}")
print(f" Done: {result.done}")
print()
# step() takes an action and returns the next observation
result = env.step(EchoAction(message="Hello, OpenEnv!"))
print("After step:")
print(f" Observation: {result.observation}")
print(f" Reward: {result.reward}")
print(f" Done: {result.done}")
print()
# state() returns episode metadata
state = env.state()
print("State:")
print(f" Episode ID: {state.episode_id}")
print(f" Step count: {state.step_count}")
```
output:
```
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
[/tmp/ipykernel_543/408460619.py](https://localhost:8080/#) in ()
----> 1 from envs.echo_env import EchoEnv, EchoAction
2
3 # Connect to the hosted Echo environment
4 with EchoEnv(base_url="https://openenv-echo-env.hf.space/").sync() as env:
5 # reset() starts a new episode
ModuleNotFoundError: No module named 'envs'
```
**I understand this is a missing module error and I can install it somehow from the internet, but shouldn't have this already taken care of?**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.