Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Copying / Exporting Notebook from Python Tool

Markus2
7 - Meteor

Hello All

 

What is the best way to leverage a notebook from one Python Tool to another? As it is possible to import a notebook into a Python Tool it would be sufficient if there were a possibility to export it from a Python Tool, but I do not see any such functionality.

3 REPLIES 3
echuong1
Alteryx Alumni (Retired)

Follow the below steps to import python code:

echuong1_0-1605099745020.png

 

https://help.alteryx.com/current/designer/python-tool

Markus2
7 - Meteor

I don't want to import, but to export it.

abner-sa
8 - Asteroid

I had the same problem with Jupyter notebook codes in Alteryx files. Even, sometimes, the code "disappears".

So, I create a small script to get the codes (Save as Get-JupyterCodeInAlteryxFiles.ps1).

 

Description:
Find, get Jupyter notebook codes in yxmc, yxwz, and yxmd files and write in the same directory as these files.
The filenames of the created files follow the following conversion: "(Alteryx filename) (ID) (Name).ipynb"

 

Example:

Get-JupyterCodeInAlteryxFiles.ps1 -Path "...\workflows\"

 

Labels
Top Solution Authors