Python Forum
Pydoc documentation doesnt work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pydoc documentation doesnt work
#1
I keep trying to make a html documentation file with pydoc .

I run my code in Python IDLE Shell and then use this:

import <your module name> as name:
import pydoc
pydoc.writeDoc(name)
But it doesn't work at all. I don't get a .html documentation file of my program.
Could someone help?

I have also tried this:

pydoc -w myModule.py
in IDLE and it also did not work.
Reply
#2
Try
Output:
pydoc -w myModule
in an ordinary terminal (not in the python console). Don't include the ".py" suffix in the module's name.
Reply
#3
(Dec-12-2019, 11:26 PM)Gribouillis Wrote: Try
Output:
pydoc -w myModule
in an ordinary terminal (not in the python console). Don't include the ".py" suffix in the module's name.

Ive tried it in in cmd and also in Python terminal. It didnt work.
Reply
#4
What happens if you type in a Cmd terminal
Output:
pydoc -b
?
Reply
#5
(Dec-13-2019, 06:59 AM)Gribouillis Wrote: What happens if you type in a Cmd terminal
Output:
pydoc -b
?

I have figured it out. It works now. Thank you for your help aswell and for your time.

The problem for me was that I would open the file as Edit With IDLE (by clicking on the .py file with right mouse click), but when I tried opening the program using File->Open in IDLE Shell it seemed to work fine.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why doesnt chunk generation work? LotosProgramer 0 249 Jun-18-2021, 01:13 PM
Last Post: LotosProgramer
  if conditions in the for indentation doesnt work ? Sutsro 6 1,317 Jun-15-2021, 11:45 PM
Last Post: bowlofred
  how to suppress not to display the package contents from pydoc! maiya 3 673 Mar-19-2021, 03:41 AM
Last Post: bowlofred
  I have two Same Code but One of them Doesnt Work beginner721 6 781 Jan-22-2021, 10:56 PM
Last Post: beginner721
  code doesnt return anything ofrihemo 3 813 Jun-30-2020, 05:14 PM
Last Post: ofrihemo
  taking input doesnt print as list bntayfur 2 804 Jun-04-2020, 02:48 AM
Last Post: bntayfur
  multiprocessing doesnt contain some modules(shared_memory) mike000 3 866 Oct-31-2019, 02:20 PM
Last Post: mike000
  BEGINNER: My calculator doesnt work iskov 5 1,245 Oct-09-2019, 07:45 AM
Last Post: buran
  Why this simple function doesnt work? blackknite 8 1,718 Jan-05-2019, 12:32 PM
Last Post: buran
  why doesnt the while loop run? supermane 3 1,564 Aug-04-2018, 06:01 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020