Guest User

Untitled

a guest
Jul 11th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. from IPython import display
  2. import matplotlib.pyplot as plt
  3. from revoscalepy import RxInSqlServer, rx_exec
  4. # create a remote compute context with connection to SQL Server
  5. sql_compute_context = RxInSqlServer(connection_string = connection_string.format(new_db_name))
  6. # use rx_exec to send the function execution to SQL Server
  7. image = rx_exec(send_this_func_to_sql, compute_context = sql_compute_context)[0]
  8. # only an image was returned to my jupyter client. All data remained secure and was manipulated in my db.
  9. display.Image(data=image)
Add Comment
Please, Sign In to add comment