cutter/src/utils/JupyterConnection.h

33 lines
557 B
C
Raw Normal View History

2017-12-13 17:36:00 +00:00
#ifndef JUPYTERCONNECTION_H
#define JUPYTERCONNECTION_H
#include <QProcess>
2018-02-09 15:48:02 +00:00
struct _object;
typedef _object PyObject;
struct _ts;
typedef _ts PyThreadState;
2017-12-13 17:36:00 +00:00
class JupyterConnection : public QObject
{
Q_OBJECT
public:
JupyterConnection(QObject *parent = nullptr);
~JupyterConnection();
void start();
signals:
void urlReceived(const QString &url);
private:
2018-02-09 15:48:02 +00:00
PyObject *cutterJupyterModule = nullptr;
PyObject *cutterNotebookAppInstance = nullptr;
2017-12-13 17:36:00 +00:00
2018-02-09 15:48:02 +00:00
PyThreadState *pyThreadState = nullptr;
2017-12-13 17:36:00 +00:00
};
#endif //JUPYTERCONNECTION_H