Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 82d1e0c

Browse files
authored
Adding comments as hooks for Python support when imported internally. (#267)
1 parent d7534fa commit 82d1e0c

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Gym/Blackjack/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import Python
1616
import TensorFlow
1717

18+
// Initialize Python. This comment is a hook for internal use, do not remove.
19+
1820
let gym = Python.import("gym")
1921
let environment = gym.make("Blackjack-v0")
2022

Gym/CartPole/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import Python
1616
import TensorFlow
1717

18+
// Initialize Python. This comment is a hook for internal use, do not remove.
19+
1820
let np = Python.import("numpy")
1921
let gym = Python.import("gym")
2022

Gym/FrozenLake/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import Python
1616
import TensorFlow
1717

18+
// Initialize Python. This comment is a hook for internal use, do not remove.
19+
1820
let np = Python.import("numpy")
1921
let gym = Python.import("gym")
2022

0 commit comments

Comments
 (0)