Skip to content

Commit cf40ce5

Browse files
committed
fixed uncompleted note data download
1 parent 2326e62 commit cf40ce5

4 files changed

Lines changed: 11 additions & 13 deletions

File tree

src/Cell.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ export default function Cell({
7777
output = "";
7878
}
7979
}
80-
} else if (input.includes("plot") || input.includes("console.for")) {
81-
return document.getElementById(`out_${currentCell}`);
8280
}
8381
// eslint-disable-next-line no-eval
8482
const cellstate = { ...cell, input, output };

src/index.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,39 @@ body {
55
sans-serif;
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
8-
}
8+
};
99

1010
code {
1111
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
1212
monospace;
13-
}
13+
};
1414

1515
.CodeMirror{
1616
min-height: 50px !important;
1717
height: auto !important;
18-
}
18+
};
1919

2020
textarea{
2121
width: 100%;
2222
min-height: 7vh;
2323
border: 1px solid #e5e1db;
2424
border-radius: 5px;
2525
resize: none;
26-
}
26+
};
27+
2728
textarea:focus{
2829
outline: none;
29-
}
30+
};
3031

3132
a{
3233
color: #36c5ce;
3334
text-decoration: none;
34-
}
35+
};
3536

3637
input:focus{
3738
outline: none !important;
38-
}
39+
};
3940

4041
button:focus{
4142
outline: 0;
42-
}
43+
};

src/reducer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const reducer = (state, action) => {
2727
);
2828
const { payload } = action;
2929
payload.id = `cell_${getMax + 1}`;
30-
console.log(payload);
3130
newCell.splice(action.currentId, 0, payload);
3231
console.log(newCell);
3332
return {

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ function viz(name, callback) {
237237
// create the ploting div needed
238238
// eslint-disable-next-line prefer-const
239239
let id = `out_${window.current_cell}`;
240-
document.getElementById(id).innerHTML += `<div id=${name}></div>`;
240+
const a = (document.getElementById(id).innerHTML += `<div id=${name}></div>`);
241241
// eslint-disable-next-line no-unused-vars
242242
let cb = callback(name);
243-
return cb;
243+
return a;
244244
// eslint-disable-next-line no-unused-vars
245245
}
246246
/**

0 commit comments

Comments
 (0)