Hi all,
When same jupyter script is run by several users, all of them with their own app key, is it possible to find a way to don't need to rewrite each personal copy of the script in order to change the app key code associated to this person?
@Nabil Edriss Sanchez1I can't be sure what the purpose of your question was, so consider the following as a general statement, which may or may not be applicable to your case.The purpose of the application key is to identify the application, not the user. If multiple users run the same script, there's no need to generate an app key for each user. Multiple users can run the same script using the same app key. When you have multiple scripts that are sufficiently different, it is advisory to generate separate key for each script. This way if a user simultaneously runs multiple scripts, and one of them is misbehaving (e.g. exhausting the data retrieval limits by sending too many requests), we can identify which of the scripts is the culprit.
import eikon as ek
f = open(r"C:\Eikon_key.txt", "r")key =f.readline()ek.set_app_key(key)
-----------------------------------------
you can put the key into a text file and put the Eikon_key.txt file in the correct path. Eikon_key.txt just contains key. Hope it can help.
Great. Thank you