def runningInNotebook():
    # Check that the type of ipython instance is consistent with the notebook.
    try:
        import IPython
        gui = IPython.core.pylabtools.find_gui_and_backend() #@UndefinedVariable
        if 'inline' not in gui:
            #print 'missing inline'
            return False
    except:
        #print "error importing"
        return False
    
    #print "success in notebook"
    return True
    


# TODO: Features to be included in the initial release.
#     analysis: 
#         FaceRec(FERET,BioID) 
#         FaceDetection(perdue,FERET,BioID) 
#         EyeFinding (FERET,BioID)
#         AutoFace(FERET,BioID)
#         Support: ImageLog, Stats, ROC, RegressionEval, ClassifierEval, HomographyEval
#     edge:
#         Algorithms: canny, sobel, prewitt, hough transform
#     face:
#         Algorithms: CascadeDetect, SVM Eye Localization, Normalization, PCA Recognition, LDA Recognition, SVM Recognition 
#         Cascade Training
#     gui: 
#         PointSelector (eye_coords)
#         CovariateTool
#     other:
#         ChangeDetection
#         Normalization
#     point:
#         DetectorCorner
#         DetectorDog
#         PhaseCorrelation
#         SVMPointLocator
#     transform:
#         Affine(least squares)
#         Perspective(least squares/homography)
#         AutoHomography
#     types:
#         Image, Point, Rect
#     vector:
#         PCA
#         LDA
#         SVM
#         ID3
#         LinearRegression
#         2DPoly
#         VectorClassifier


# TODO: Features ideas for future releases
#     OpenCV Webcam Support
#     Animation Support
#     Interactive 3D Visualization
#     Live Demo Support
#     EBGM
#     Object Recognition
#     Neural Networks
#     Fundamental Matrix and 3D Reconstruction
#     LBP - Texture analysis and face recognition.
@return: True if python interpreter is running in an iPython HTML Notebook.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/__init__.py/runningInNotebook