Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Python Tool - Timeout waiting for execute reply (30s)

Kaloust
7 - Meteor

Hello,

 

I am trying to run checks on my data using the new Python tool. Everything is working as expected when I select a small number of rows, but once I use the whole data (approximately 1M rows) I am getting a timeout error "Timeout waiting for execute reply (30s)". Is there a way to adjust the Python configurations to increase the timeout waiting time?

 

Thank you.

10 REPLIES 10
cristian_pisoni
5 - Atom

Hi,

 

maybe, now there's a parameters in the Python Tool that resolves this issue, but I found it useful to turn the batch commands in this thread into actual Python code and embed into my work:

 

import os

 

path = os.environ['USERPROFILE']+'\.jupyter'

if not os.path.exists(path):
         os.makedirs(path)

if not os.path.exists(path+'\jupyter_nbconvert_config.py'):
         with open(path+'\jupyter_nbconvert_config.py', "w") as f: # Opens file and casts as f
                  f.write('c.ExecutePreprocessor.timeout = None\n')
                  f.close()

 

file %USERPROFILE%\.jupyter\jupyter_nbconvert_config.py is created only if it doe not already exist.

 

Regards

Cristian Pisoni

Labels