Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default module docstring in Spyder?

How to change the default template for new modules in Spyder IDE?

# -*- coding: utf-8 -*-
"""
Created on %(date)s

@author: X
"""
like image 828
Abdulrahman Bres Avatar asked Dec 03 '17 15:12

Abdulrahman Bres


People also ask

How do you get a docstring for Spyder?

When you type in triple quotes after a function header, an icon will pop up that says Generate docstring . When this happens, hit Enter .

How do you get function documentation on Spyder?

You can activate the object inspector to display the documention of the function itself by enabling automatic connections for your editor or console. It will then show you the function parameters as you press the left parenthesis. To enable it go to Tools > Preferences > Object Inspector .

What is Rich Text in Spyder?

Rich Text mode renders the object's docstrings with Sphinx , Plain Text mode displays the docstring without formatting while Show Source displays the docstring inline with the code for the selected object, or any Python portion of it (if the object is not pure Python).


1 Answers

Preferences > Editor > Advanced settings > Edit template for new modules

changing default docstring for modules in Spyder

like image 126
Abdulrahman Bres Avatar answered Oct 18 '22 10:10

Abdulrahman Bres