# Running an executable notebook from command line

**URL:** <https://discuss.pynq.io/t/running-an-executable-notebook-from-command-line/2621>\
**Category:** Support\
**Created:** [May 6, 2021, 10:02am UTC](https://discuss.pynq.io/t/running-an-executable-notebook-from-command-line/2621 "2021-05-06T10:02:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shalom](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shalom/32/1308_2.png) [@shalom](https://discuss.pynq.io/u/shalom)\
**Post date:** [May 6, 2021, 10:02am UTC](https://discuss.pynq.io/t/running-an-executable-notebook-from-command-line/2621/1 "2021-05-06T10:02:34Z")

</div>

Hello

I have a notebook that run whithouyt any issue on jupyter

after export it to an excutable script , i tried to run it from command line  
but I get the following error :

import pynq  
ImportError: No module named pynq

will be happy for some help 🙂

Thanks  
Shalom

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [May 6, 2021, 10:36am UTC](https://discuss.pynq.io/t/running-an-executable-notebook-from-command-line/2621/2 "2021-05-06T10:36:58Z")

</div>

You need to run as Python 3.

Cathal

---

<div class="post-metadata">

**Author:** ![shalom](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/shalom/32/1308_2.png) [@shalom](https://discuss.pynq.io/u/shalom)\
**Post date:** [May 9, 2021, 7:46am UTC](https://discuss.pynq.io/t/running-an-executable-notebook-from-command-line/2621/3 "2021-05-09T07:46:24Z")

</div>

Thank you very much  
I will try

Shalom
