SOLVED
Python Output
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
mishrapratyush
5 - Atom
‎06-14-2021
01:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
So I have been trying to run a python script inside my alteryx and I just cannot seem to get the output of the data onto the anchor.
The error reads- NameError: name "Alteryx" is not defined
Any help is much appreciated.
For your reference, in the attached screenshot, the code works perfectly fine and I can recall variable_6 however, I cannot output it.
Solved! Go to Solution.
Labels:
- Labels:
- Python
2 REPLIES 2
BrandonB
Alteryx
‎06-14-2021
01:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Are you importing Alteryx at the beginning of your script?
you need
from ayx import Alteryx
‎06-14-2021
07:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Worked like a charm. Thank you so much @BrandonB. Can't believe I missed that!