# Python Scope - Global Context

**URL:** <https://forum.uipath.com/t/python-scope-global-context/738829>\
**Category:** Activities\
**Tags:** question, studio, python, activities\
**Created:** [May 5, 2024, 5:52am UTC](https://forum.uipath.com/t/python-scope-global-context/738829 "2024-05-05T05:52:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoshanJha](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/roshanjha/32/407289_2.png) [@RoshanJha](https://forum.uipath.com/u/RoshanJha)\
**Post date:** [May 5, 2024, 5:52am UTC](https://forum.uipath.com/t/python-scope-global-context/738829/1 "2024-05-05T05:52:11Z")

</div>

Hi,

I am trying to build a flow where i am initializing the python scope in the main workflow and wanted to run the scripts from the sub flows, however the scope is not accessible inside the subflows.

Is there any way we can achieve this in UiPath, where we only need to inilialize the python once and we can invoke the functions in different flows which is linked to the main workflow?

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [May 5, 2024, 9:15am UTC](https://forum.uipath.com/t/python-scope-global-context/738829/2 "2024-05-05T09:15:27Z")

</div>

@RoshanJha

Basically python to run needs a scope and it does not support output variable also…So i think you cannot

Cheers

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [May 5, 2024, 9:31am UTC](https://forum.uipath.com/t/python-scope-global-context/738829/3 "2024-05-05T09:31:48Z")

</div>

@RoshanJha,

It’s not possible as least as of now. You will have to initialize the scope wherever you need to use any Python activities.

You can request this feature as feedback and UiPath team will take a look on this. Sample thread how we can request.

> [@Feature Request](https://forum.uipath.com/t/feature-request/187587):
>
> Page triggers: Possibilty to sort triggers according next runtime. Page Job: Also show excution time directly Show Timestamp (DateTime) instead of for example “18 hours ago”. Monitoring: We use multiple classic folder. Nice would be an monitoring overview over all folders. Better visibilty of system: Actually you can style the part on bottom right where we can set system name. A requirement is that is more visibile which system is running. Link on test system green banner on top of pag…

Thanks,  
Ashok 🙂
