We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Running Python Script from in Alteryx

ThornhillTaylor
7 - Meteor

hi all, 

 

I am getting the following error when running my python script from Jupyter

 

'C:\program is not recognized as an internal or external command, operable program or batch file.'

 

 

I have created a python file in Jupyter that shows correct and saved as a .py file. and ran as an "Import File"  in the Python tool... Any ideas on this error?

4 REPLIES 4
apathetichell
20 - Arcturus

your path should be in some form of quotes. my hypothesis your path is something like c:\program files\...... - without quotes this is being truncated at the first space.

ThornhillTaylor
7 - Meteor

Thanks, @apathetichell , how would you suggest moving the code from Jupyter to alteryx?

ThornhillTaylor
7 - Meteor

sorry,  this is my first Python script

BS_THE_ANALYST
15 - Aurora
15 - Aurora

@ThornhillTaylor definitely worth looking into this https://community.alteryx.com/t5/Data-Science/Introducing-the-Jupyter-Flow-Tool/ba-p/779654 . This way you're calling on the notebook rather than having to copy and paste code across. Especially helpful if you need to manage virtual environments.

Screenshot 2023-10-30 165342.png

 

If you're just trying to get off the ground with moving code over, I think copy and pasting isn't going to cause harm as long as you retain indentation.

All the best,

BS

 

All the best,
BS

LinkedIN

Bulien
Labels
Top Solution Authors