Thanks John Kitchin. Your suggestion works.
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
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...')
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