webapp/jupyter: minor cleanup around handling code completions -- #3050
webapp/jupyter: minor cleanup around handling code completions -- #3050

tscholl2/smc,tscholl2/smc,sagemathinc/smc,tscholl2/smc,DrXyzzy/smc,DrXyzzy/smc,sagemathinc/smc,sagemathinc/smc,tscholl2/smc,sagemathinc/smc,DrXyzzy/smc,DrXyzzy/smc,tscholl2/smc