Abdelrahman (Abdo) Mohamed - Thanks for the question and using MS Q&A platform.
You can use
pipand%pipcommands to manage libraries in the Notebook code cells.
For more details, refer to Manage libraries for Apache Spark in Azure Synapse Analytics.
Hope this helps. Do let us know if you any further queries.