"""This script manages all tasks for the TRAVIS build server."""
import os
import subprocess

if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "grmpy_tutorial_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)
    os.chdir("../..")


if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "tutorial_semipar_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)

"""This script manages all tasks for the TRAVIS build server."""
import os
import subprocess

if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "grmpy_tutorial_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)
    os.chdir("../..")


# if __name__ == "__main__":
#     os.chdir("promotion/grmpy_tutorial_notebook")
#     cmd = [
#         "jupyter",
#         "nbconvert",
#         "--execute",
#         "tutorial_semipar_notebook.ipynb",
#         "--ExecutePreprocessor.timeout=-1",
#     ]
#     subprocess.check_call(cmd)

Comment out semipar notebook in travis runner until pip build us updated.
Comment out semipar notebook in travis runner until pip build us updated.

  """This script manages all tasks for the TRAVIS build server."""
  import os
  import subprocess
  
  if __name__ == "__main__":
      os.chdir("promotion/grmpy_tutorial_notebook")
      cmd = [
          "jupyter",
          "nbconvert",
          "--execute",
          "grmpy_tutorial_notebook.ipynb",
          "--ExecutePreprocessor.timeout=-1",
      ]
      subprocess.check_call(cmd)
      os.chdir("../..")
  
  
- if __name__ == "__main__":
+ # if __name__ == "__main__":
-     os.chdir("promotion/grmpy_tutorial_notebook")
+ #     os.chdir("promotion/grmpy_tutorial_notebook")
-     cmd = [
+ #     cmd = [
-         "jupyter",
+ #         "jupyter",
-         "nbconvert",
+ #         "nbconvert",
-         "--execute",
+ #         "--execute",
-         "tutorial_semipar_notebook.ipynb",
+ #         "tutorial_semipar_notebook.ipynb",
-         "--ExecutePreprocessor.timeout=-1",
+ #         "--ExecutePreprocessor.timeout=-1",
-     ]
+ #     ]
-     subprocess.check_call(cmd)
+ #     subprocess.check_call(cmd)
  
Comment out semipar notebook in travis runner until pip build us updated.
## Code Before:
"""This script manages all tasks for the TRAVIS build server."""
import os
import subprocess

if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "grmpy_tutorial_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)
    os.chdir("../..")


if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "tutorial_semipar_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)

## Instruction:
Comment out semipar notebook in travis runner until pip build us updated.
## Code After:
"""This script manages all tasks for the TRAVIS build server."""
import os
import subprocess

if __name__ == "__main__":
    os.chdir("promotion/grmpy_tutorial_notebook")
    cmd = [
        "jupyter",
        "nbconvert",
        "--execute",
        "grmpy_tutorial_notebook.ipynb",
        "--ExecutePreprocessor.timeout=-1",
    ]
    subprocess.check_call(cmd)
    os.chdir("../..")


# if __name__ == "__main__":
#     os.chdir("promotion/grmpy_tutorial_notebook")
#     cmd = [
#         "jupyter",
#         "nbconvert",
#         "--execute",
#         "tutorial_semipar_notebook.ipynb",
#         "--ExecutePreprocessor.timeout=-1",
#     ]
#     subprocess.check_call(cmd)
