Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

166
Views
Ipython notebook handle async commands

I am working on a Jupyter notebook to customize its custom.js So I created a toolbar button which runs a Bash command (for example : git pull) It works well, like this :

if($(IPython.toolbar.selector.concat(' > #pull-repo')).length == 0){ IPython.toolbar.add_buttons_group([
    {
         'label'   : 'pull repository',
         'icon'    : 'fa fa-angle-double-down',
         'callback': function(){
             code_input = "!git pull"
             var kernel = IPython.notebook.kernel;
             var msg_id = kernel.execute(code_input);

         }
    }
], 'pull-repo'); }

The problem is, I want to notify the user when the execution is done (with and alert("msg") or ..) Would this be possible ?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!