Skip to content

Commit

Permalink
Fixed inline render call with extra args. Removed most console logs f…
Browse files Browse the repository at this point in the history
…or inline.
  • Loading branch information
interpret-ml committed Sep 24, 2019
1 parent 2dd269f commit 0bba011
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/interpret-core/interpret/provider/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ def __init__(self, detected_envs=None):
def render(self, explanation, key=-1, **kwargs):
from ..visual.inline import render

render(explanation, default_key=key, detected_envs=self.detected_envs, **kwargs)
render(explanation, default_key=key, detected_envs=self.detected_envs)
1 change: 0 additions & 1 deletion python/interpret-core/interpret/visual/inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def _build_javascript(viz_obj, id_str=None, default_key=-1):
callback(root['interpret-inline']);
}}
}})(this, function(interpretInline) {{
console.log(interpretInline);
interpretInline.RenderApp("{0}", {1}, {2});
}});
Expand Down
8 changes: 4 additions & 4 deletions python/interpret-core/js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const App = props => {

return options;
};
console.log("Building options");
// console.log("Building options");
const options = buildOptions(props.explanations.selector);
const select = (
<Select
Expand All @@ -61,7 +61,7 @@ const App = props => {
let renderable = <div className={"empty-space"} />;
let name = "";

console.log("Selecting plot");
// console.log("Selecting plot");

if (selectedOption !== null) {
name = props.explanations.name;
Expand All @@ -77,8 +77,8 @@ const App = props => {
figure = specific.figure;
type = specific.type;
}
console.log(type);
console.log(figure);
// console.log(type);
// console.log(figure);

if (type === "none") {
renderable = (
Expand Down

0 comments on commit 0bba011

Please sign in to comment.