# How to set the. py file in notebook to boot in PYNQ development board

**URL:** https://discuss.pynq.io/t/how-to-set-the-py-file-in-notebook-to-boot-in-pynq-development-board/383
**Category:** Support
**Created:** [August 12, 2019, 3:52pm UTC](https://discuss.pynq.io/t/how-to-set-the-py-file-in-notebook-to-boot-in-pynq-development-board/383 "2019-08-12T15:52:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![d\_ty\_xiumu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/d_ty_xiumu/32/250_2.png) [@d\_ty\_xiumu](https://discuss.pynq.io/u/d_ty_xiumu)
#### Post date: [August 12, 2019, 3:52pm UTC](https://discuss.pynq.io/t/how-to-set-the-py-file-in-notebook-to-boot-in-pynq-development-board/383/1 "2019-08-12T15:52:30Z")

</div>

How do I set a . py file to self-startup when I use PYNQ-2

---

<div class="post-metadata">

### Author: ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)
#### Post date: [August 12, 2019, 4:43pm UTC](https://discuss.pynq.io/t/how-to-set-the-py-file-in-notebook-to-boot-in-pynq-development-board/383/2 "2019-08-12T16:43:48Z")

</div>

You can make a system service and run that python file in your service. See example:

> **[PYNQ/sdbuild/packages/pynq at master · Xilinx/PYNQ](https://github.com/Xilinx/PYNQ/tree/master/sdbuild/packages/pynq)**
>
> master/sdbuild/packages/pynq

where the pl server is started during boot.

---

<div class="post-metadata">

### Author: ![d\_ty\_xiumu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/d_ty_xiumu/32/250_2.png) [@d\_ty\_xiumu](https://discuss.pynq.io/u/d_ty_xiumu)
#### Post date: [August 19, 2019, 12:22pm UTC](https://discuss.pynq.io/t/how-to-set-the-py-file-in-notebook-to-boot-in-pynq-development-board/383/3 "2019-08-19T12:22:43Z")

</div>

thanks!!!  
I will try this cocument !

rock via PYNQ [pynq1@discoursemail.com](mailto:pynq1@discoursemail.com) 于2019年8月13日周二 上午12:53写道：
