ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 19 Oct 2013 00:24:54 -0500docstring for my .py files does not work in Sage Notebook [UPD1]http://ask.sagemath.org/question/10629/docstring-for-my-py-files-does-not-work-in-sage-notebook-upd1/Hello!
Sage 5.10, Linux Mint 15 Cinnamon. <br>
I created new directory "pycode" in /home/andrei/ <br>
There is one file my_func.py in /home/andrei/pycode <br>
The context of my_module.py:
import sage.all
def my_func(a, b, c):
"""
hello!
"""
return(a+b+c)
In Sage Notebook I do the next:
import sys # 1st cell
sys.path.append('/home/andrei/pycode/') # 2nd cell
import my_module # 3rd cell
my_module.my_func? # 4 cell
I don't see any docstring in Sage Notebook. Where is the error? Please help me. Thanks.
----------------------------------------
**UPD1:**
I found the answer! :)
First of all I turned off and then launched sage notebook. After that I saw my docstring. Then I use Action... --> Restart worksheet.
Please explain me why shift+enter doesn't work for me. Thanks.
AndreWinSat, 19 Oct 2013 00:24:54 -0500http://ask.sagemath.org/question/10629/