# How to import a .py file from a directory

**URL:** <https://discourse.jupyter.org/t/how-to-import-a-py-file-from-a-directory/8430>\
**Category:** Meta\
**Tags:** jupyterhub\
**Created:** [March 20, 2021, 3:00am UTC](https://discourse.jupyter.org/t/how-to-import-a-py-file-from-a-directory/8430 "2021-03-20T03:00:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [March 20, 2021, 11:03pm UTC](https://discourse.jupyter.org/t/how-to-import-a-py-file-from-a-directory/8430/2 "2021-03-20T23:03:57Z")

</div>

Did you try the following?

```python
import test_standard

```

---

_[View the full topic](https://discourse.jupyter.org/t/how-to-import-a-py-file-from-a-directory/8430)._
