1. How to run the python file instead of python notebook

How to run the python file instead of python notebook

Home › Forums › FABRIC Educators › How to run the python file instead of python notebook

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6582
    Yuvaraj Munian
    Participant

      Please let me know how to run the python file instead of ipynb

      #6586
      Luis Contreras
      Participant

        Hello,
        A way to run a python file can be to create a code cell on the ipynb notebook and type:
        “%run <relative_path_to_python file>.py”

        alternatively you can open a terminal and run your python file as “python <python_file_name>.py” (be sure to be in the correct directory)

        hope this helps

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.