Re: documenting python module examples in orgmode

2019-12-11 Thread Divan Santana
Thanks John Kitchin. Your suggestion works.

Re: documenting python module examples in orgmode

2019-12-09 Thread Kaushal Modi
On Mon, Dec 9, 2019, 5:49 AM Divan Santana wrote: > Hi All, > > I'm trying to document python module examples in orgmode. > > I'm sure this is possible, but not quite sure how to do it. > > I'd like to define the python module in one block, and then import it in > another. > Have you looked at t

Re: documenting python module examples in orgmode

2019-12-09 Thread John Kitchin
The only way to do this is if you have an intermediate tangle step so that the python file exists in a place where it can be imported. For example, this small modification will make what you want happen. #+NAME: my_module.py #+begin_src python :tangle my_module.py print('Importing my_module...')

documenting python module examples in orgmode

2019-12-09 Thread Divan Santana
Hi All, I'm trying to document python module examples in orgmode. I'm sure this is possible, but not quite sure how to do it. I'd like to define the python module in one block, and then import it in another. #+NAME: my_module.py #+begin_src python print('Importing my_module...') test = 'Test S