Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
converttonotebook.py File Reference

Namespaces

namespace  converttonotebook

Functions

 converttonotebook.changeMarkdown (code)
 converttonotebook.convertDoxygenLatexToMarkdown (text)
 Replace formula tags used by doxygen to the ones used in notebooks.
 converttonotebook.cppComments (text)
 Converts comments delimited by // and on a new line into a markdown cell.
 converttonotebook.cppFunction (text)
 Extracts main function for the function enclosure by means of regular expression.
 converttonotebook.declareIncludes (code)
 converttonotebook.declareNamespace (code)
 converttonotebook.disableDrawProgressBar (code)
 converttonotebook.findBracedBlock (text, startpos, openingBraceChar)
 Scan the string in <text>, starting at <startpos>.
 converttonotebook.findStuffBeforeFunc (text, searchStart, searchEnd)
 converttonotebook.findTimeout ()
 converttonotebook.fixes (code)
 converttonotebook.getLibMathMore (code)
 converttonotebook.isCpp ()
 Return True if extension is a C++ file.
 converttonotebook.mainfunction (text)
 Main function.
 converttonotebook.measureIndentation (text)
 Measure the indentation width.
 converttonotebook.processmain (text)
 Evaluates whether the main function returns a TCanvas or requires input.
 converttonotebook.pythonComments (text)
 Converts comments delimited by # or ## and on a new line into a markdown cell.
 converttonotebook.pythonMainFunction (text)
 converttonotebook.readHeaderCpp (text)
 Extract author and description from header, eliminate header from text.
 converttonotebook.readHeaderPython (text)
 Extract author and description from header, eliminate header from text.
 converttonotebook.removePaletteEditor (code)
 converttonotebook.roofitRemoveSpacesComments (code)
 converttonotebook.rs401dGetFiles (code)
 converttonotebook.runEventExe (code)
 converttonotebook.split (text)
 Splits the text string into main, helpers, and rest.
 converttonotebook.tree4GetFiles (code)
 converttonotebook.unindenter (string, spaces=3)
 Returns string with each line unindented by 3 spaces.

Variables

 converttonotebook.author
 converttonotebook.date = datetime.now().strftime("%A, %B %d, %Y at %I:%M %p")
 converttonotebook.description
 converttonotebook.extension
 converttonotebook.isJsroot
 converttonotebook.isNotebook
 converttonotebook.needsHeaderFile
 converttonotebook.nodraw
 converttonotebook.outdir = str(sys.argv[2])
str converttonotebook.outname = tutFileName + ".ipynb"
str converttonotebook.outnameconverted = tutFileName + ".nbconvert.ipynb"
 converttonotebook.outPathName = os.path.join(outdir, outname)
 converttonotebook.ret = mainfunction(text)
 converttonotebook.starttime = time.time()
 converttonotebook.text = fin.read()
 converttonotebook.tutFileName = os.path.basename(tutPathName)
str converttonotebook.tutName = "tutorial"
 converttonotebook.tutPath = os.path.dirname(tutPathName)
 converttonotebook.tutPathName = str(sys.argv[1])
str converttonotebook.tutRelativePath = "$ROOTSYS/tutorials/%s/" % tutPath.split("/")[-1]
str converttonotebook.tutTitle = tutName
 converttonotebook.verbose