Hi Alvaro, it depends on the situation. If the string is written on the code you can use de "@hidden" parameter on a cell, so when someone opens it from outside jupyter, the content will be hidden, but nothing can be done(that I'm aware of) if someone opens it from inside jupyterlab. If you include the credential via env, the CP4D version 4 and onwards automatically hide that sensitive information. Another option is the import of connection, but like the former, if someone enters jupyterlab and runs the code the credentials can be printed. I usually leave those data in an env when creating a job.
------------------------------
Walter Pereira Lima Neto
------------------------------