forked from jupyter-xeus/xeus-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxinterpreter_wasm.cpp
46 lines (36 loc) · 1.34 KB
/
xinterpreter_wasm.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
* Copyright (c) 2018, Martin Renou, Johan Mabille, Sylvain Corlay, *
* Wolf Vollprecht and Thorsten Beier *
* Copyright (c) 2018, QuantStack *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#include "xeus/xinterpreter.hpp"
#include "xeus/xsystem.hpp"
#include "pybind11/functional.h"
#include "xeus-python/xinterpreter.hpp"
#include "xeus-python/xinterpreter_wasm.hpp"
namespace py = pybind11;
namespace xpyt
{
wasm_interpreter::wasm_interpreter()
: interpreter(true, true)
{
m_release_gil_at_startup = false;
}
wasm_interpreter::~wasm_interpreter()
{
}
void wasm_interpreter::configure_impl()
{
interpreter::configure_impl();
py::gil_scoped_acquire acquire;
py::module::import("pyjs");
}
bool wasm_interpreter::use_jedi_for_completion() const
{
return false;
}
}