GitHub user zyratlo added a comment to the discussion: Where should the helper functions go in an exported Python script?
Here are the options I can think of for Copy: 1. **Keep copy, and it gives the script without the helpers.** Copy gives the same script as in the ZIP, so it won't run on its own. This works for the case you mentioned where someone already has `texera_helpers.py`, but for anyone exporting for the first time, copy is a dead end. They'd have to download the ZIP anyway, so they might as well have downloaded in the first place. 2. **Keep copy, and include the helpers so it runs out of the box.** This could use the `main()` layout from my earlier comment, or something else. The user can run a copied script right away, but the format is different from the download. 3. **Remove copy and only allow download.** This avoids both problems (different formats, or a copied script that doesn't run), but users can no longer paste the script straight into a notebook or an existing file. I personally support 2. I think it's fine for copy and download to give different formats, since they're for different uses, but I would like to hear what other people think too. GitHub link: https://github.com/apache/texera/discussions/9368#discussioncomment-19504730 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
