# Integração de script Python no UiPath

**URL:** <https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963>\
**Category:** Studio\
**Tags:** tools, question, studio, python, activities\
**Created:** [May 2, 2023, 12:26pm UTC](https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963 "2023-05-02T12:26:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![devrpa746](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@devrpa746](https://forum.uipath.com/u/devrpa746)\
**Post date:** [May 2, 2023, 12:26pm UTC](https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963/1 "2023-05-02T12:26:31Z")

</div>

Olá comunidade!

Preciso rodar um script python que criei no jupyter notebook no UiPath, poderiam me explicar de que maneira posso fazer isso?

---

<div class="post-metadata">

**Author:** ![arjunshenoy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/arjunshenoy/32/404588_2.png) [@arjunshenoy](https://forum.uipath.com/u/arjunshenoy)\
**Post date:** [May 2, 2023, 12:31pm UTC](https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963/2 "2023-05-02T12:31:19Z")

</div>

Ei @devrpa746

Os seguintes recursos podem ajudá-lo com o mesmo:

> [@How do I use Invoke Python acitivities](https://forum.uipath.com/t/how-do-i-use-invoke-python-acitivities/51527):
>
> WIth the release of a new version of UiPath, python support has been added. Could anyone please give me some working examples of how I can invoke a python function, method or something to my project? Unfortunately the description of the methods on the official UiPath website doesn’t really make it clear to me how to use it. For instance, I need to run a very simple python code where I have some input variables and maybe some output. What activity do I use for it? Another question: what if my …

[![](https://global.discourse-cdn.com/uipath/original/4X/c/4/3/c439393eb8f96ebc12501623d43e14378ca2ab49.jpeg "How to run a Python script from UiPath") ](https://www.youtube.com/watch?v=4DTDVaJJ5x4)

espero que isto ajude

---

<div class="post-metadata">

**Author:** ![devrpa746](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@devrpa746](https://forum.uipath.com/u/devrpa746)\
**Post date:** [May 2, 2023, 7:47pm UTC](https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963/3 "2023-05-02T19:47:04Z")

</div>

Olá! Neste exemplo ele faz com um arquivo .py , preciso de um exemplo .ipynb

---

<div class="post-metadata">

**Author:** ![arjunshenoy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/arjunshenoy/32/404588_2.png) [@arjunshenoy](https://forum.uipath.com/u/arjunshenoy)\
**Post date:** [May 5, 2023, 6:12am UTC](https://forum.uipath.com/t/integracao-de-script-python-no-uipath/540963/4 "2023-05-05T06:12:00Z")

</div>

@devrpa746

O UiPath Studio não oferece suporte à execução direta de notebooks Jupyter (arquivos .ipynb). Você pode consultar o tópico a seguir sobre como converter e executar esses arquivos.

> [@Execute Jupyter notebook(.ipynb) script in UiPath](https://forum.uipath.com/t/execute-jupyter-notebook-ipynb-script-in-uipath/397429):
>
> Hello Everyone, I have a requirement to execute a Jupyter Notebook script through UiPath. I was able to do it through Command prompt using jupyter nbconvert --to notebook --execute mynotebook.ipynb command. I have been reading the option of using Invoke Python Activity through API interface. I have used Invoke Python activity for .py scripts which has defined invoke method and input argument to pass it in the activity but I am not able to follow same approach with Jupyter Notebook. Can someone …

> [@Jupyter notebook code in uipath](https://forum.uipath.com/t/jupyter-notebook-code-in-uipath/183918/4):
>
> This guide will help you write the InvokePython code: [https://nbconvert.readthedocs.io/en/latest/execute\_api.html](https://nbconvert.readthedocs.io/en/latest/execute_api.html) You could also execute the notebook using powershell and command line arguments, as also suggested in the link above.

espero que isto ajude.
