> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> Intégrez W&B à Farama Gymnasium pour suivre les expériences d'apprentissage par renforcement et enregistrer des vidéos d'épisode.

# Farama Gymnasium

Si vous utilisez [Farama Gymnasium](https://gymnasium.farama.org/#), nous enregistrerons automatiquement les vidéos de votre environnement générées par `gymnasium.wrappers.Monitor`. Il vous suffit de définir l'argument mot-clé `monitor_gym` de [`wandb.init()`](/fr/models/ref/python/functions/init) sur `True`.

Notre intégration à Gymnasium est très légère. Nous [regardons simplement le nom du fichier vidéo](https://github.com/wandb/wandb/blob/c5fe3d56b155655980611d32ef09df35cd336872/wandb/integration/gym/__init__.py#LL69C67-L69C67) enregistré depuis `gymnasium` et l'utilisons comme nom, ou revenons à `"videos"` si aucune correspondance n'est trouvée. Si vous souhaitez avoir plus de contrôle, vous pouvez toujours [enregistrer une vidéo](/fr/models/track/log/media/) manuellement.

Consultez ce [rapport](https://wandb.ai/raph-test/cleanrltest/reports/Mario-Bros-but-with-AI-Gymnasium-and-CleanRL---Vmlldzo0NTcxNTcw) pour en savoir plus sur comment utiliser Gymnasium avec la bibliothèque CleanRL.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541/mVjDwbx0mC8gYx-b/images/integrations/gymnasium.png?fit=max&auto=format&n=mVjDwbx0mC8gYx-b&q=85&s=411a0cd5e0b82ba043062e185cea2259" alt="Environnement RL Gymnasium" width="2132" height="1124" data-path="images/integrations/gymnasium.png" />
</Frame>
