stikkireddy / example-arbitrary-file-execution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arbitrary File Execution

Steps

  1. Go to user settings by clicking your name on the top right
  2. Navigate to editor settings tab
  3. Turn on the new notebook editor
  4. Turn on the new file editor (Experimental)
  5. Take a look at main.py to see how to execute python files with __name__ == __main__
  6. Take a look at main notebook to be able to import python modules (files) and packages (folders) into a notebook to execute functions.

Screenshots

Editor Settings

Enable New File Editor

Run In Notebook

Run Arbitrary File

About


Languages

Language:Python 100.0%