# How to get started with python in gnuradio

**URL:** <https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251>\
**Category:** GNU Radio\
**Created:** [June 10, 2013, 3:49am UTC](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251 "2013-06-10T03:49:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [June 10, 2013, 3:49am UTC](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251/1 "2013-06-10T03:49:06Z")

</div>

Hi all  
It would be very helpful to me if some one tells me how to get started  
with  
python in gnu radio.I see an entire page dedicated to python programming  
but it does not say anything about getting started.Please don’t say to  
use#!/usr/bin/env/python part  
in that page.Any link to how to get started with an example would be  
helpful.

---

<div class="post-metadata">

**Author:** ![vamshi\_krishna\_dodl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e47774/32.png) [@vamshi\_krishna\_dodl](https://www.ruby-forum.com/u/vamshi_krishna_dodl)\
**Post date:** [June 10, 2013, 5:31am UTC](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251/2 "2013-06-10T05:31:54Z")

</div>

suppose your python file is run.py.  
In terminal, just use ./run.py in the directory where the file is  
placed.

On Sun, Jun 9, 2013 at 8:48 PM, vamshi krishna dodla \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> Thanks & Regards  
> Vamshi Krishna Dodla
> 
> * * *
> 
> Discuss-gnuradio mailing list  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [Discuss-gnuradio Info Page](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)

–

Alex,  
_Dreams can come true just believe._

---

<div class="post-metadata">

**Author:** ![vamshi\_krishna\_dodl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e47774/32.png) [@vamshi\_krishna\_dodl](https://www.ruby-forum.com/u/vamshi_krishna_dodl)\
**Post date:** [June 10, 2013, 3:10pm UTC](https://www.ruby-forum.com/t/how-to-get-started-with-python-in-gnuradio/235251/3 "2013-06-10T15:10:21Z")

</div>

On Sun, Jun 9, 2013 at 9:48 PM, vamshi krishna dodla  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all  
> It would be very helpful to me if some one tells me how to get started with  
> python in gnu radio.I see an entire page dedicated to python programming but  
> it does not say anything about getting started.Please don’t say to use  
> #!/usr/bin/env /python part in that page.Any link to how to get started with  
> an example would be helpful.
> 
> –  
> Thanks & Regards  
> Vamshi Krishna Dodla

When you have the source code, every top level component (e.g.,  
gr-digital) has an ‘examples’ directory. Most of the examples are in  
Python. Some components have examples in GRC, Python, and C++, in  
which case you’ll find the Python examples in ‘examples/python’.

Tom
