The magic commands work perfectly in Notebooks. However, While running the same notebook from the Synapse pipeline, it could not locate the notebook's path.
Appreciate your help
{
"errorCode": "6002",
"message": "MagicUsageError: Cannot read notebook Externals/Helper. The possible reason is that the notebook doesn't exist. More details please visit https://go.microsoft.com/fwlink/?linkid=2173018\n--> PartnerException: Exception of type 'Microsoft.Analytics.SynapseNotebookService.Infrastructure.Exceptions.ClientExceptions.PartnerException' was thrown.",
"failureType": "UserError",
"target": "sample",
"details": []
}
The cause of error is the path you provided to the 

if you are using GIT you need to publish the notebook first. After that the reference over the pipeline works.
Best regards Gio