Skip to content

Tag: jupyter-notebook

Pass input parameters to script from jupyter notebook

I am trying to run a python script provided by a file from a Jupyter notebook. The script is running if I use the following command: But I need to pass those paths from a variable of my notebook. How can I do it? Tried this but it didn’t work: Answer Values can be passed through to the shell command

Grouping speaker dialogue in a written transcript

I have a txt file for a transcript. Example content: I would like to write some python code that will give the following output: So if Travis de Ronde is talking, for example, I want all of his dialogue to be on one “line” under his name until he is finished speaking or another speaker begins talk…