paulroth3d / jupyter-ijavascript-utils

Utility library for working with iJavaScript - a Jupyter Kernel
1 stars 0 forks source link

Add in tutorial about how to load in data #5

Open paulroth3d opened 2 years ago

paulroth3d commented 2 years ago

People are looking into the datasets module and how they can connect to their own databases - Like what if they don’t have JSON or text, and looking for guidance

paulroth3d commented 2 years ago

Since ijavascript supports loading in any non module for JavaScript, you can use any non module you would normally use to connect - like for MySQL or AWS, SalesForce, etc for a traditional NodeJS script.

however, we should discuss how to store secrets (like with dotenv non module or others)

We would love any feedback on what people would like to see, and will give it a try

paulroth3d commented 2 years ago

Include link to danfo.js and data frame-js, and other libraries for people looking for pandas similar options for JavaScript

include Pandas in the database tutorial

paulroth3d commented 2 years ago

Someone shared this with me:

https://towardsdatascience.com/the-jupyterlab-credential-store-9cc3a0b9356

Note that there is a newer version of credential store that is not broken:

https://www.npmjs.com/package/@ccorbin/credentialstore

I hope these may help others if they are looking for it, but personally I am rather leery of storing any credentials with code and would much rather recommend something simple and "dumb" like dotenv.

(Note that while extensions for dotenv exist, like dotenv-expand, these cache the results and allow them for expansion, but can allow expansion of other values from the host machine not explicitly whitelisted in the .env file. I'm a little leery about this - as it can make collision difficult, make it hard to ensure consistency, and is a bit scary beyond. )