# Can the pythn code still work to download bitstream if the Jupyter is turned off?

**URL:** <https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172>\
**Category:** Support\
**Created:** [December 22, 2020, 10:46am UTC](https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172 "2020-12-22T10:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)\
**Post date:** [December 22, 2020, 10:46am UTC](https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172/1 "2020-12-22T10:46:38Z")

</div>

Hi, dear PYNQ developers,

If we turn off the Jupyter to offload the CPU on ZCU-104, can our Python code still work as well which loads the FPGA bitstream image and perform register configuration of the hardware accelerator on the ZCU-104? It is assumed that we use command mode to execute the Pyhon code on PYNQ ZCU-104.

xilinx@pynq\_sdu:~ $ ps aux | grep jupyter  
xilinx 4283 0.0 0.0 5668 668 pts/3 S+ 10:31 0:00 grep --color=auto jupyter  
Tue 22. Dec 10:31:34 AM UTC 2020 ✔

BTW, is it related to the following problem?

xilinx@pynq\_sdu:~/pynq/prj\_tst/int\_add $ sudo python3.6 int\_add.py  
[sudo] password for xilinx:  
/usr/local/lib/python3.6/dist-packages/pynq/overlay.py:299: UserWarning: Users will not get PARAMETERS / REGISTERS information through TCL files. HWH file is recommended.  
warnings.warn(message, UserWarning)  
Traceback (most recent call last):  
File “int\_add.py”, line 4, in   
ol = Overlay(“/home/xilinx/pynq/overlays/int\_add/int\_add.bit”)  
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 315, in **init**  
self.download()  
File “/usr/local/lib/python3.6/dist-packages/pynq/overlay.py”, line 379, in download  
super().download()  
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1938, in download  
PL.shutdown()  
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1458, in shutdown  
ip = cls.ip\_dict  
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1297, in ip\_dict  
cls.client\_request()  
File “/usr/local/lib/python3.6/dist-packages/pynq/pl.py”, line 1416, in client\_request  
cls.\_remote = Client(address, family=‘AF\_UNIX’, authkey=key)  
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 487, in Client  
c = SocketClient(address)  
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 614, in SocketClient  
s.connect(address)  
ConnectionRefusedError: [Errno 111] Connection refused  
Tue 22. Dec 09:36:53 AM UTC 2020 ✘ ❬1❭

Thank you very much  
All the best,

---

<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:** [December 22, 2020, 11:14am UTC](https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172/2 "2020-12-22T11:14:28Z")

</div>

**Yes** you can run your Python code with PYNQ without Jupyter - from the command line, or from a script etc.

Cathal

---

<div class="post-metadata">

**Author:** ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)\
**Post date:** [December 22, 2020, 11:27am UTC](https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172/3 "2020-12-22T11:27:33Z")

</div>

Thank you very much for the swift reply.

---

<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:** [March 15, 2021, 7:22am UTC](https://discuss.pynq.io/t/can-the-pythn-code-still-work-to-download-bitstream-if-the-jupyter-is-turned-off/2172/4 "2021-03-15T07:22:28Z")

</div>

4 posts were split to a new topic: [How to use PYNQ without Jupyter from the command line](https://discuss.pynq.io/t/how-to-use-pynq-without-jupyter-from-the-command-line/2426)
