Hi, When you install a module, is there a "normal" place it puts its documentation? As I was installing MarkDown, I heard it say it was writing HTML files, but since it did not say where it was putting them, I'm unsure where to look. I tried to look in my Python directory tree for the files, because I thought that if I heard their names, I would recognize them, but I was unsuccessful. I also went into the Python interpreter and determined that I could go into the help system and type something like help markdown and get a ton of documentation to come onto my screen. Is there a way to still be in the Python interpreter's help system and make help commands go to a file? Thanks. Jim On 9/17/14, Jeffrey Thompson <jthomp@xxxxxxxxxxx> wrote: > Jim and other pythonistas, > Most modules that have "dependencies"will > have the appropriate modules imported > at the top of the code. > So you usually don't have to worry about dependencies. > > Additionally, Python does not perform any import command twice; > so if we import 2 modules, > both of them have an import random at the top of their code. > Python recognizes that random has been imported by module 1 and doesn't > need > to import it again in module 2. > So that is something you don't have to worry about. > > jet (Jeffrey Thompson) > > -----Original Message----- > From: pythonvis-bounce@xxxxxxxxxxxxx > [mailto:pythonvis-bounce@xxxxxxxxxxxxx] > On Behalf Of Jim > Sent: Wednesday, September 17, 2014 7:15 PM > To: pythonvis@xxxxxxxxxxxxx > Subject: [pythonvis] Re: How Do You GGet and Set Up a Python Module? > > Hi, > Jeff, you propted a question and a memory of a link that I have saved. > First the question. Oh, by the way, I was successful in getting pip > set up, so I'm going to see if I can get it to install MarkDown next. > Here is the question. How can you find out if a module you are > thinking of installling might depend on another module? > > Thanks. > > Jim > > On 9/17/14, Jeffrey Thompson <jthomp@xxxxxxxxxxx> wrote: >> Hi Jim and other pythonistas, >> >> Thanks for the posts by Stephanie and Deenadayalan Moodley >> >> After you have installed the MarkDown code, then to use MarkDown in >> your program you must import the desired module or it's functions, > classes, >> etc. >> >> import statements are usually put at the very top of the program >> code. >> Once imported, the code is available for any function or method or class >> that wants to use any imported items. >> Should you place it lower down in your code, it may generate a "item not >> found" error messagewhen trying to execute the desired imported code. >> So to avoid this problem, you can do what many programs do, >> which is to place the import statements at the beginning of your code . >> >> You import a module using the import command: >> code start --- >> import MarkDown >> # if you wish to use a Data element or function or class from MarkDown > then >> you would type: >> from Markdown import A_class, A_data_element >> # You can import as many items as you want to from Markdown. >> # end code --- >> >> As above, you can import more than one item from a module; >> and the items imported can be on different lines of code. >> This may be preferable for sighted users >> to not go too far to the right of the visible page that they are viewing. >> >> If you do not select individual items, >> you can get everything with: >> code start --- >> import MarkDown >> end code--- >> >> If you are using a number of items in MarkDown, then it makes sense to >> download the entire module. >> On the other hand, you can be importing a lot of code that your program >> will >> never use; >> and whatever you import has to be scanned in the first pass of the >> interpreter before the program starts executing your code. >> So being specific saves a little execution time, >> and gives the programmer an idea of what you're doing with this imported >> module. >> But you do have to type a little morecode if you get specific. >> >> You can find what's in a module by reading any description or > documentation >> which sometimes as a separate file, such as a >> "read me" file which is inside the module. >> All the modules from the Python Standard Reference Library are downloaded >> when you install python from python.org >> There is plenty of stuff there to do a lot of what programmers want done. >> >> There are also 3rd party python libraries, >> and even 3rd party versions of python, >> which have certain characteristics that make them more attractive to use >> for >> developing certain kinds of programming. >> Note: 3rd party code may require a monetary payment to use. >> >> As far as 3rd party libraries is concerned, >> There may be documentation on there website or as a separate file in the >> module, >> or a description or documentation within each of the components within >> the >> module. >> >> Many modules may have a "set-up" installation function. >> which will place the module in the correct place so that it will be >> recognized by the Python.exe application when it starts up. >> >> There are numerpous guides and even books which can provide >> in-depth description and uses of the various standard modules. >> This is one from python.org: >> https://docs.python.org/2/library/ >> >> Jet (Jeffrey Thompson) >> >> -----Original Message----- >> From: pythonvis-bounce@xxxxxxxxxxxxx >> [mailto:pythonvis-bounce@xxxxxxxxxxxxx] >> On Behalf Of Jim >> Sent: Monday, September 15, 2014 2:45 PM >> To: pythonvis >> Subject: [pythonvis] How Do You GGet and Set Up a Python Module? >> >> Hi, >> There is a Python module called MarkDown. I want to learn how to set >> it up and use it. I tried to understand the process on the Python >> Package Index. I'm lacking confidence that I will get it done >> correctly. Does anyone have guidance on how to do this? And after I >> get it on my computer, how do I read the documentation for it? >> >> Thanks. >> >> Jim >> >> -- >> e+r=o >> Skype: jim.homme >> List web page is >> //www.freelists.org/webpage/pythonvis >> >> To unsubscribe, send email to >> pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field. >> >> List web page is >> //www.freelists.org/webpage/pythonvis >> >> To unsubscribe, send email to >> pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field. >> > > > -- > e+r=o > Skype: jim.homme > List web page is > //www.freelists.org/webpage/pythonvis > > To unsubscribe, send email to > pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field. > > List web page is > //www.freelists.org/webpage/pythonvis > > To unsubscribe, send email to > pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field. > -- e+r=o Skype: jim.homme List web page is //www.freelists.org/webpage/pythonvis To unsubscribe, send email to pythonvis-request@xxxxxxxxxxxxx with "unsubscribe" in the Subject field.