Skip to content

Commit

Permalink
some things
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Nov 6, 2020
1 parent 24f0189 commit 2e561e9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions frontend/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,16 @@ export class Editor extends Component {
loading: false,
})
console.info("All cells loaded! 🚂 enjoy the ride")
// do one autocomplete to trigger its precompilation
this.client.send(
"complete",
{
query: "sq",
},
{
notebook_id: this.state.notebook.notebook_id,
}
)
})
}
)
Expand Down
11 changes: 7 additions & 4 deletions frontend/components/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,18 @@ export const TreeView = ({ mime, body, cell_id, all_completed_promise, requests,
>${body.elements.map((r) => (r === "more" ? more : html`<r><k>${r[0]}</k><v>${mimepair_output(r[1])}</v></r>`))}</jlarray
>`
break
break
case "Dict":
case "NamedTuple":
inner = html`${body.prefix}<jldict class=${body.type}
>${body.elements.map((r) => (r === "more" ? more : html`<r><k>${mimepair_output(r[0])}</k><v>${mimepair_output(r[1])}</v></r>`))}</jldict
>${body.elements.map((r) => (r === "more" ? more : html`<r><k>${mimepair_output(r[0])}</k><v>${mimepair_output(r[1])}</v></r>`))}</jldict
>`
break
case "NamedTuple":
inner = html`<jldict class=${body.type}
>${body.elements.map((r) => (r === "more" ? more : html`<r><k>${r[0]}</k><v>${mimepair_output(r[1])}</v></r>`))}</jldict
>`
break
case "struct":
inner = html`${body.prefix}<jlstruct> ${body.elements.map((r) => html`<r><k>${r[0]}</k><v>${mimepair_output(r[1])}</v></r>`)} </jlstruct>`
inner = html`${body.prefix}<jlstruct>${body.elements.map((r) => html`<r><k>${r[0]}</k><v>${mimepair_output(r[1])}</v></r>`)}</jlstruct>`
break
}

Expand Down

0 comments on commit 2e561e9

Please sign in to comment.