Report loading failed!
Your browser does not allow locally-loaded html files to load other local files. This is a security restriction present in many standard browsers (don't worry). There are several things you can do to fix this problem:
- If the URL in your address bar begins with
file://
, then you have several options:- Firefox currently allow files to load other files by default, so if you're not using Firefox right now just switching to Firefox may cause this report to load properly.
- Safari will work if you first enable the "Disable Local File Restrictions" under the Develop menu (go to Preferences, Advanced to show the Develop menu if you don't see it now).
- Chrome will work if it's started with the --allow-file-access-from-files flag. On Windows, this can be done by executing chrome.exe --allow-file-access-from-files from a command prompt; on a Mac you'll need to execute something like /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --allow-file-access-from-files.
- If your URL is using a Jupyter notebook server, and begins with
localhost:8888/files/
or similar, then the issue is likely due to server and browser cross-domain security restrictions. Recent versions of Jupyter notebooks, may require a couple modifications to your ~/.jupyter/jupyter_notebook_config.py file (created by jupyter notebook --generate-config if it doesn't exist already) to get things working. Add the following two lines to your configuration file, restart the notebook server, and reload this page.c.NotebookApp.allow_origin = 'null' c.NotebookApp.tornado_settings = { 'headers': { 'Access-Control-Allow-Credentials': 'true' } }
- Finally, if none of the above worked or you'd rather a different approach, you can load this page through a legitimate web server. Running a local web server and loading this page (main.html) through the web server instead of by opening the file directly (so the address bar begins with
http://
will almost certainly fix any problems. Three fairly simple ways of doing this are:- If you have Python installed, running
python -m SimpleHTTPServer
on Mac/Linux orpython -m http.server
on Windows from a command line will start a local web server rooted in the current directory. Access this server from a browser by typinglocalhost:8000
in the address bar. Navigate from there to main.html and you should be all set. - If you have the Google Chrome browser (even if you're not using it), then download the Web Server for Chrome app (do a web search to find the app on Google's web store) and follow the instructions to start a local web server running out of a given local directory.
- If you use Jupyter notebooks you can use the notebook server to access this main.html page. You just place
files
in front of the actual path to main.html (from your notebook server's root). For example,http://localhost:8888/files/path/to/myReport/main.html
. A trick for accessing files like this is to navigate to main.html using Jupyter's web interface (which sometimes will edit the HTML page instead of opening it) and then changingedit
tofiles
in the address bar. If this doesn't work, you probably need to fix the configuration as described above (the jupyter server isn't quite a full-fledged web server and needs some tweaking).
- If you have Python installed, running