473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

IDLE built-in help in Linux vs Windows

In Windows if you click the Help dropdown, IDLE launches a help window
as it should. The help contents are included in the installation.

In Linux, clicking Help launches a web browser, which is a perfectly
good UI for viewing help. However, instead of loading a static HTML
file from the disk like the Windows version does, it visits the doc
directory on python.org over the internet.

Is there any reason for that? It's noticably slower even over
broadband, painful over dialup, and unusable if you're not connected
to the net at all.
Jul 16 '06 #1
1 1610
Paul Rubin wrote:
In Windows if you click the Help dropdown, IDLE launches a help window
as it should. The help contents are included in the installation.

In Linux, clicking Help launches a web browser, which is a perfectly
good UI for viewing help. However, instead of loading a static HTML
file from the disk like the Windows version does, it visits the doc
directory on python.org over the internet.

Is there any reason for that? It's noticably slower even over
broadband, painful over dialup, and unusable if you're not connected
to the net at all.
>From a brief look at the code...
On any platform, IDLE will open http://www.python.org/doc/current if it
can't find Python's help files locally.

IDLE searches for these local help files in several places, different
places per platform.

On linux, it first checks for the /var/www/html/python/ directory. If
that exists index.html is read from there, otherwise it tries
/usr/share/doc/python-docs-2.4.3/Doc/index.html (replace 2.4.3 with
your Python version). If neither exists, it will open the help fiel
from it's web location.

So I guess your installation simply didn't put the help files in either
of these places... If you find the docs on your computer, you could
either copy them to one of these locations, or edit
Lib\idlelib\EditorWindow.py to open it from wherever you find them.
According to the code, IDLE will ignore what seems to be the standard
location of these docs: os.path.join(sys.prefix, 'Doc', 'index.html')
I'm not too big on where Python's doc files are located on
installations on different platforms. Could somebody who knows explain?

Jul 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ken | last post by:
I'm trying to find the correct method of launching IDLE (v 0.8) to debug a script. When I run without a script name and then enable the debugger option and then load and run the script I have no...
3
by: Brent W. Hughes | last post by:
Sometimes when I try to start up idle.py (by double-clicking on the icon), I get the message: Python subprocess socket error: Connection refused, retrying.... It repeats the message a couple of...
1
by: neutrinman | last post by:
How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to python 2.3, IDLE 1.0.3. When I execute the code below: from...
5
by: Kevin Buchan | last post by:
How can I tell if the system is 'idle', or the screen saver is running, or the machine is locked? I am writing an application that could really benefit from knowing this information. During...
1
by: CSN | last post by:
'ps axu' shows: postgres 1249 0.0 0.7 20200 7296 ? S 11:50 0:00 postgres: user1 database1 127.0.0.1 idle postgres 1251 0.0 0.6 20196 7036 ? S 11:50 0:00 postgres: user1...
1
by: Bennie Tilma | last post by:
I'm having trouble with opening the IDLE and running programs. Every time I try to open it, it says: 1. Socket error: Connection refused 2. IDLE's subprocess didn't make connection. Either IDLE...
4
by: Udi | last post by:
Hi All, What do you know about the Application.Idle event? When is it a good practice to use it and when should I not use it? I know it fires when the app message queue is empty, and that this...
0
by: Edward K. Ream | last post by:
I've asked these questions on idle-dev with no answer. 1. How can code tell whether it is being run from Idle's debugger? 2. How can code being run from Idle's debugger simulate a breakpoint,...
1
by: cbielins | last post by:
DB2v8.x - AIX64 what status is considered 'idle' by DB2? Connect Completed UOW Waiting I would think statuses like this would be considered 'idle' and thus forced off if you have a written...
4
by: W. Watson | last post by:
I thought I try to step through some simple Python code I wrote with IDLE using Debug. I'm at the early stages of learning Python. I used the shell to Run, then clicked on Debug->Debugger. That...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.