Created
September 12, 2020 20:34
-
-
Save nescobar/152a8721a7ca6deff31cfb02a3e6c2ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run notebook | |
notebook_name = 'network_graph' | |
dbutils.notebook.run(notebook_name, 180) | |
# Get run_id from notebook | |
global_temp_db = spark.conf.get("spark.sql.globalTempDatabase") | |
run_id_table = 'run_id_{}'.format(notebook_name) | |
run_id = table(global_temp_db + "." + run_id_table).first()[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment