I am trying to create a link to file2.py
from file_1.py
. For simplicity we can assume both are in the same package.
What I would do in Java (via Intellij) is using {@link AnotherClass}
but this is not possible in Python comment (or Pycharm):
I also tried to use Sphinx
and though it is possible to make such links with something like :py:mod:'my.package.file2'
this doesn't work for me since I cannot use an IDE to navigate to the file and I also cannot generate these links easily since there is no autocomplete available to auto-generate the full module path.
Is there any other option I am missing? I am not restricted to any particulare IDE/Editor or any link format.