-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpythonexec.hpp
30 lines (24 loc) · 1.03 KB
/
pythonexec.hpp
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
/************************************************************************************
* Copyright (c) 2025, xeus-cpp contributors *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
************************************************************************************/
#ifndef XEUS_CPP_PYTHONEXEC_MAGIC_HPP
#define XEUS_CPP_PYTHONEXEC_MAGIC_HPP
#include <string>
#include "xeus-cpp/xmagics.hpp"
namespace xcpp
{
class pythonexec : public xmagic_cell
{
public:
XEUS_CPP_API
void operator()(const std::string& line, const std::string& cell) override;
private:
static bool is_initalized;
void initialize();
};
} // namespace xcpp
#endif //XEUS_CPP_PYTHONEXEC_MAGIC_HPP