1

I'm having issue trying to run d3.js in my IPYthon session on a computer with no Internet access.

I have put a copy of the latest d3.js library in my folder and used this code (found here)

%%javascript

requirejs.config({
    paths: { 
        'd3': ['//localhost:9876/notebooks/notebook/Sandboxes/d3'], 
    },
});

require(['d3'], function(d3) {
    console.log("Loaded :)");    
    return {};
});

Nothing happens in the console yet I know that this url works as :

import requests as r
r.get("http://localhost:9876/notebooks/notebook/Sandboxes/d3.js").text

returns the file.

On a side note, when I try getting the file via wget

 wget localhost:9876/notebooks/notebook/Sandboxes/d3.js

It downloads 470070 o (the correct size) but does not complete...

Thanks for any possible answer, naingenieu

BTW: I use ipython v3.0.0 python 2.7.9 (anaconda 2.2.0) on a redhat server

2
  • Can you give information about the computer? Also, about the IPython, Python version. Commented Jul 28, 2016 at 15:54
  • Yep, I added the informations Commented Jul 29, 2016 at 12:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.