2017-12-13 17:36:00 +00:00
|
|
|
#ifndef JUPYTERCONNECTION_H
|
|
|
|
#define JUPYTERCONNECTION_H
|
|
|
|
|
|
|
|
#include <QProcess>
|
2018-01-29 14:13:16 +00:00
|
|
|
#include "CommandServer.h"
|
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:
|
|
|
|
QProcess *process;
|
2018-01-29 14:13:16 +00:00
|
|
|
CommandServer *cmdServer;
|
2017-12-13 17:36:00 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void readStandardError();
|
|
|
|
void readStandardOutput();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //JUPYTERCONNECTION_H
|