Jupyter-PHP icon indicating copy to clipboard operation
Jupyter-PHP copied to clipboard

Ignore leading `<?php`

Open rgbkrk opened this issue 7 years ago • 2 comments

Would it be appropriate for this kernel to ignore a <?php line so that it can be passed a whole script?

Original issue report in Hydrogen: https://github.com/nteract/hydrogen/issues/726

rgbkrk avatar Apr 21 '17 18:04 rgbkrk

Hi, yup, maybe this could be a solution, but in the meanwhile, commenting this first line will solve the issue:

// <?php

castarco avatar Apr 21 '17 18:04 castarco

Any news about this issue? I'm teaching PHP in a Programming course using Hydrogen & Jupyter-PHP and it's weird to ask my students to put // in front of <?php in order to run their scripts...

ricpelo avatar May 22 '19 18:05 ricpelo