class_docstr: Use this context manager to automatically start and close a database session
  
  Examples:
      >>> with DBContextManager('ProjectFolder') as session:
      >>>     # Do stuff with session
class_docstr_tok: ["Use","this","context","manager","to","automatically","start","and","close","a","database","session","Examples",":",">",">",">","with","DBContextManager","(","'ProjectFolder","'",")","as","session",":",">",">",">","#","Do","stuff","with","session"]
docstr: Initialize context manager
  
  Args:
      path (str, unicode): Path to project folder
docstr_tok: ["Initialize","context","manager","Args",":","path","(","str",",","unicode",")",":","Path","to","project","folder"]
code: def __init__(self, path):
      """Initialize context manager
  
      Args:
          path (str, unicode): Path to project folder
      """
      self.path = os.path.join(
          path, app.config["XCESSIV_NOTEBOOK_NAME"]
      )
  
imports: from __future__ import absolute_import, print_function, division, unicode_literals
  import imp
  import sys
  import os
  import hashlib
  import json
  import numpy
  from sqlalchemy import create_engine
  from sqlalchemy.orm import Session
  from six import exec_, iteritems
  from sklearn import datasets
  from sklearn import model_selection
  from xcessiv import app, exceptions
label_desc: Use image node_id 1 to create a new DBContextManager object  with example: obj = DBContextManager(path)