Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
nbmain.cxx File Reference
#include "RConfigure.h"
#include "TCollection.h"
#include "TList.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TSystemDirectory.h"
#include "TSystemFile.h"
#include <fstream>
#include <string>
#include <memory>
Include dependency graph for nbmain.cxx:

Macros

#define COMMIT_FILE   ".rootcommit"
#define JUPYTER_CMD   "jupyter"
#define JUPYTER_CONF_PATH_V   "JUPYTER_CONFIG_PATH"
#define JUPYTER_CONFIG   "jupyter_notebook_config.py"
#define JUPYTER_PATH_V   "JUPYTER_PATH"
#define NB_CONF_DIR   "notebook"
#define NB_OPT   "notebook"
#define ROOTNB_DIR   ".rootnb"

Functions

static int CheckNbInstallation (string dir)
 Checks whether ROOT notebook files are installed and they are the current version.
static bool CreateJupyterConfig (string dest, string rootbin, string rootlib, string rootdata)
 Creates the Jupyter notebook configuration file that sets the necessary environment.
static bool CreateStamp (string dest)
 Creates a file that stores the current commit id in it.
static bool InstallNbFiles (string source, string dest)
 Installs ROOT notebook files in the user's home directory.
int main (int argc, char **argv)
 Spawn a Jupyter notebook customised by ROOT.

Variables

constexpr const char * pathsep = "/"

Macro Definition Documentation

◆ COMMIT_FILE

#define COMMIT_FILE   ".rootcommit"

Definition at line 43 of file nbmain.cxx.

◆ JUPYTER_CMD

#define JUPYTER_CMD   "jupyter"

Definition at line 37 of file nbmain.cxx.

◆ JUPYTER_CONF_PATH_V

#define JUPYTER_CONF_PATH_V   "JUPYTER_CONFIG_PATH"

Definition at line 39 of file nbmain.cxx.

◆ JUPYTER_CONFIG

#define JUPYTER_CONFIG   "jupyter_notebook_config.py"

Definition at line 44 of file nbmain.cxx.

◆ JUPYTER_PATH_V

#define JUPYTER_PATH_V   "JUPYTER_PATH"

Definition at line 40 of file nbmain.cxx.

◆ NB_CONF_DIR

#define NB_CONF_DIR   "notebook"

Definition at line 41 of file nbmain.cxx.

◆ NB_OPT

#define NB_OPT   "notebook"

Definition at line 38 of file nbmain.cxx.

◆ ROOTNB_DIR

#define ROOTNB_DIR   ".rootnb"

Definition at line 42 of file nbmain.cxx.

Function Documentation

◆ CheckNbInstallation()

int CheckNbInstallation ( string dir)
static

Checks whether ROOT notebook files are installed and they are the current version.

Definition at line 60 of file nbmain.cxx.

◆ CreateJupyterConfig()

bool CreateJupyterConfig ( string dest,
string rootbin,
string rootlib,
string rootdata )
static

Creates the Jupyter notebook configuration file that sets the necessary environment.

Definition at line 133 of file nbmain.cxx.

◆ CreateStamp()

bool CreateStamp ( string dest)
static

Creates a file that stores the current commit id in it.

Definition at line 169 of file nbmain.cxx.

◆ InstallNbFiles()

bool InstallNbFiles ( string source,
string dest )
static

Installs ROOT notebook files in the user's home directory.

Definition at line 87 of file nbmain.cxx.

◆ main()

int main ( int argc,
char ** argv )

Spawn a Jupyter notebook customised by ROOT.

Definition at line 188 of file nbmain.cxx.

Variable Documentation

◆ pathsep

const char* pathsep = "/"
constexpr

Definition at line 53 of file nbmain.cxx.