Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
A base class session manager.
Authors:
Bases: IPython.config.configurable.LoggingConfigurable
Start a database connection
Creates a session and returns its model
Start a cursor and create a database called ‘session’
Deletes the row in the session database with given session_id
Returns the model for a particular session.
Takes a keyword argument and searches for the value in the session database, then returns the rest of the session’s info.
Parameters: | **kwargs : keyword argument
|
---|---|
Returns: | model : dict
|
Returns a list of dictionaries containing all the information from the session database
Create a uuid for a new session
Takes sqlite database session row and turns it into a dictionary
Saves the items for the session with the given session_id
Given a session_id (and any other of the arguments), this method creates a row in the sqlite session database that holds the information for a session.
Parameters: | session_id : str
name : str
path : str
kernel_id : str
|
---|---|
Returns: | model : dict
|
Check to see if the session for a given notebook exists
Updates the values in the session database.
Changes the values of the session with the given session_id with the values from the keyword arguments.
Parameters: | session_id : str
**kwargs : str
|
---|