Skip to content

Commit 5258f1b

Browse files
author
hatsy
committed
Changed bokehjs imports from cdn to node module direct import
1 parent f00be41 commit 5258f1b

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"test": "eslint -c .eslintrc --ext .jsx,.js public/scripts/ && make test"
77
},
88
"dependencies": {
9+
"bokehjs": "^0.12.5",
910
"bootstrap": "^3.3.7",
1011
"bootstrap-css": "^3.0.0",
1112
"css-loader": "^0.26.2",
1213
"exports-loader": "^0.6.4",
1314
"imports-loader": "^0.7.1",
1415
"jquery": "^3.1.1",
15-
"plotly.js": "^1.23.1",
1616
"react": "^15.1.0",
1717
"react-dom": "^15.1.0",
1818
"react-redux": "^5.0.3",

public/index.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55
<title>Cesium</title>
66
<link rel="stylesheet" href="css/base.css" />
77
<link rel="icon" type="image/png" href="favicon.png"/>
8-
9-
<!-- Bokeh -->
10-
<link
11-
href="http://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.css"
12-
rel="stylesheet" type="text/css">
13-
<link
14-
href="http://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.5.min.css"
15-
rel="stylesheet" type="text/css">
16-
<script src="http://cdn.pydata.org/bokeh/release/bokeh-0.12.5.min.js"></script>
17-
<script src="http://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.5.min.js"></script>
18-
198
<link href='https://fonts.googleapis.com/css?family=Fira+Sans:400,700' rel='stylesheet' type='text/css'>
209
</head>
2110
<body>

public/scripts/Plot.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React, { Component } from 'react';
22
import { connect } from 'react-redux';
33
import { showNotification } from './Notifications';
4+
import "../../node_modules/bokehjs/build/js/bokeh.js";
5+
import "../../node_modules/bokehjs/build/css/bokeh.css";
46

57
function bokeh_render_plot(node, docs_json, render_items) {
68
// Create bokeh div element

0 commit comments

Comments
 (0)