I want to add a link to a method in my class from within the docstring of another method of the same class. I want the link to work in sphinx and preferentially also in Spyder and other Python IDE"s.
I tried several options and found only one that works, but it"s cumbersome.
Suppose the following structure in
def class MyClass(): def foo(self): print "foo" def bar(self): """This method does the same as <link to foo>""" print "foo"
I tried the following options for
<link to foo>:
The only one that effectively produces a link is :func:'mymodule.MyClass.foo', but the link is shown as
mymodule.MyClass.foo() and I want a link that is shown as
None of the options above produces a link in Spyder.
Thanks for your help.
Google BigQuery: The Definitive Guide PDF download. Data Warehousing, Analytics, and Machine Learning at Scale, 1st Edition, 2019. Work with petabyte-scale datasets while building a collaborative a...
This is the first book on synthetic data for deep learning, and its extensive coverage could make this book the standard benchmark for synthetic data for years to come. The book can also serve as an i...
As the title promises, this book will introduce you to one of the world’s most popular programming languages: Python. It’s aimed at beginning programmers as well as more experienced programmers wh...
Introduction to Machine Learning with Python: A Guide for Data Scientists 1st Edition. Machine learning has become an integral part of many commercial applications and research projects, but this f...