how to change default db from sqlite to postgresql/mysql in jupyter notebook

386 Views Asked by At

I can see there are some config options in jupyter_notebook_config.py related to default database which is sqlite

## The sqlite file in which to store notebook signatures. By default, this will
#  be in your Jupyter data directory. You can set it to ':memory:' to disable
#  sqlite writing to the filesystem.
#c.NotebookNotary.db_file = ''


## A callable returning the storage backend for notebook signatures. The default
#  uses an SQLite database.
#c.NotebookNotary.store_factory = traitlets.Undefined

Now I want to change this default db to some relational db like postgresql/mysql as we are frequently getting database locked error. currently this platform is used by multiple users for python practice. we spawn separate notebook for each user.

How can we specify the mysql/postgresql database in the configuration of jupyter notebook.

0

There are 0 best solutions below