You need to start the server in the same directory where you have your HTML file:
$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
(Or, the Python2 incantation)
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
This python code will inform you of the IP address (0.0.0.0) and the port number (8000).
If the file name is d3_template.html, you can direct to that page via http://0.0.0.0:8000/d3_template.html
You can use this also:
http://localhost:8000/d3_template.html or http://127.0.0.1:8000/d3_template.html
If you get something like this:
socket.error: [Errno 48] Address already in use
You will then have to use a different port:
$ python -m http.server 8888
And to load the file:
http://0.0.0.0:8888/d3_template.html
Want to become a Python Developer? Check out this insightful Python Certification.