As mentioned in  you can use %extra_py_files and %extra_jars for adding “Comma separated list of additional Python files from Amazon S3” and “Comma-separated list of additional jars to include in the cluster.” respectively to assign Python library path and dependent JARs path to a glue interactive session. Please note that you have to add this commands at the start of the interactive session.
Have a nice day!
How to delete glue interactive session from the list of sessions?
interactive glue job %magic command to configure Librariesasked 25 days ago
AWS Glue - Read a 'local' file in Pythonasked 2 months ago
Can I use glue interactive sessions with pythonshell?
Glue Studio Job - How to add the file name or path as a Source Key output or partitionAccepted Answerasked 5 months ago
How to retrieve job run id from the script itself in python shell glue jobasked 4 months ago
Glue Interactive Python Jupyter notebook sessionsasked 7 months ago
Interactive Testing of Glue Spark Scriptsasked 7 months ago
Glue interactive sessions error with retrieving session.asked 5 months ago
Interactive glue job %magic command to configure Number of retriesasked 15 days ago