Coder-Spirit / Jupyter-PHP

A PHP Kernel for Jupyter
MIT License
221 stars 33 forks source link

Ignore leading `<?php` #18

Open rgbkrk opened 7 years ago

rgbkrk commented 7 years ago

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

castarco commented 7 years ago

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

// <?php
ricpelo commented 5 years ago

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...