##// END OF EJS Templates
Drop jquery dependency in IPython.display.Javascript
Grant Nestor -
Show More
@@ -852,18 +852,24 b' class JSON(DisplayObject):'
852 def _repr_json_(self):
852 def _repr_json_(self):
853 return self._data_and_metadata()
853 return self._data_and_metadata()
854
854
855 _css_t = """$("head").append($("<link/>").attr({
855 _css_t = """var link = document.createElement("link");
856 rel: "stylesheet",
856 link.ref = "stylesheet";
857 type: "text/css",
857 link.type = "text/css";
858 href: "%s"
858 link.href = "%s";
859 }));
859 document.head.appendChild(link);
860 """
860 """
861
861
862 _lib_t1 = """$.getScript("%s", function () {
862 _lib_t1 = """var script = document.createElement("script");
863 """
863 script.type = "text/javascript";
864 _lib_t2 = """});
864 script.src = "%s";
865 script.onload = script.onreadystatechange = function() {
866 if (!this.readyState || this.readyState == 'complete') {
865 """
867 """
866
868
869 _lib_t2 = """}
870 };
871 document.head.appendChild(script);"""
872
867 class GeoJSON(JSON):
873 class GeoJSON(JSON):
868 """GeoJSON expects JSON-able dict
874 """GeoJSON expects JSON-able dict
869
875
General Comments 0
You need to be logged in to leave comments. Login now