Skip to content

Commit

Permalink
let's see if bug is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Sep 15, 2023
1 parent 1a55d2a commit 5ee73ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions grid2op/tests/test_notebooks_getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# SPDX-License-Identifier: MPL-2.0
# This file is part of Grid2Op, Grid2Op a testbed platform to model sequential decision making in power systems.

print("Beginning to import here")
import shutil
import copy
import os
Expand All @@ -24,7 +23,7 @@
# `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
# The use of platformdirs will be the default in `jupyter_core` v6
os.environ["JUPYTER_PLATFORM_DIRS"] = "1"
subprocess.call([f"{sys.executable}", "-m", "jupyter", "--paths"])
subprocess.run([f"{sys.executable}", "-m", "jupyter", "--paths"], capture_output=True, env=os.environ)
# the above 2 lines are to fix the above error

import nbformat
Expand All @@ -33,13 +32,11 @@
except Exception as exc_:
CAN_COMPUTE = exc_
print(f"Import error : {exc_}")
print("End of the regulart import here")

from grid2op.tests.helper_path_test import PATH_DATA_TEST

NOTEBOOK_PATHS = os.path.abspath(os.path.join(PATH_DATA_TEST, "../../getting_started"))
VERBOSE_TIMER = True
print("End of all imports here")


def delete_all(folder):
Expand Down

0 comments on commit 5ee73ab

Please sign in to comment.