print docstrings instead of using ?
"source": [
"## `load_and_normalise_mephysto`\n",
"\n",
- "PyMedPhys exports a function `pymedphys.mephysto.load_and_normalise_mephysto`. The help text for this function is given below by writing a `?` after this function:"
+ "PyMedPhys exports a function `pymedphys.mephysto.load_and_normalise_mephysto`. The docstring for this function is printed below."
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "pymedphys.mephysto.load_and_normalise_mephysto?"
+ "print(pymedphys.mephysto.load_and_normalise_mephysto.__doc__)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "In that function `pymedphys.dicom.depth_dose` was used. See below for its help text."
+ "In that function `pymedphys.dicom.depth_dose` was used. See below for its docstring."
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "pymedphys.dicom.depth_dose?"
+ "print(pymedphys.dicom.depth_dose.__doc__)"
]
},
{
" ax[1].set_title(\"DoseCHECK\")\n",
" \n",
" ax[0].set_xlabel(\"Displacement from CRA (mm)\")\n",
- " ax[1].set_xlabel(\"Displacement from CRA (mm)\")\n",
- " \n",
- "\n"
+ " ax[1].set_xlabel(\"Displacement from CRA (mm)\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "In that function `pymedphys.dicom.profile` was used. See below for its help text."
+ "In that function `pymedphys.dicom.profile` was used. See below for its docstring."
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "pymedphys.dicom.profile?"
+ "print(pymedphys.dicom.profile.__doc__)"
]
},
{
