Question: I'm creating a way to type anywhere by intercepting the `keydown` event instead of using a text box for a project. I'm having trouble finding out how to implement the backspace. This is a shortened version of my code: 

```
$(document).keydown(function(event){
    typed = String.fromCharCode(event.keyCode);
    display += typed;
    document.getElementById("text").innerHTML = letterContainer;
});

```

I was trying to use the .replace function like this...

```
if (event.keyCode == 8) {
    display.replace(typed,'');
}

```

...and put it at the beginning, but that doesn't work. Any ideas?

Answer: 
If you are using Databricks, there is a [Databricks Snowflake connector](http://Databricks%20Snowflake%20connector) created jointly by Databricks and Snowflake people. You just have to provide a few items to create a Spark dataframe (see below -- copied from the Databricks document). 

```
# snowflake connection options
options = dict(sfUrl="<URL for your Snowflake account>",
               sfUser=user,
               sfPassword=password,
               sfDatabase="<The database to use for the session after connecting>",
               sfSchema="<The schema to use for the session after connecting>",
               sfWarehouse="<The default virtual warehouse to use for the session after connecting>")

df = spark.read \
  .format("snowflake") \
  .options(**options) \
  .option("dbtable", "<The name of the table to be read>") \
  .load()

display(df)

```

As long as you are accessing your own databases with all the access rights granted correctly, this only take a few minutes, even during our first attempt. 

Good luck!
Please update to the latest version of the Snowflake JDBC driver (3.2.5); that should resolve this issue. Thanks!