Run a multiple %command in the same cell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 08:43 AM
Hello,
is there a way to run multiple %command in a same cell ?
I heard that's not possible but would like a confirmation and maybe if it could be an idea for future updates.
Moreover, is there a way to mask the output of cells (especially markdown) when using %run. I would like to keep some documentation in the notebook executed with the %run command but not prompt it in the destination notebook.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 10:08 AM
No, we cannot have multiple %command in the same cell.
About your other question, could you try using dbutils.notebook.run(). This would also provide the possibility of providing optional parameters to the child notebook. More details are available here - https://docs.databricks.com/notebooks/notebook-workflows.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 10:08 PM
just a slight correction but you can also pass parameters when using %run

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 08:44 PM
Hi @BriceBuso
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!

