Coder-Spirit / Jupyter-PHP

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

output nearly unreadable for `print_r()` command #26

Open FinlayDaG33k opened 6 years ago

FinlayDaG33k commented 6 years ago

Hii there,

I've tried using your notebook, but already at the first moment of using it, I found a little inconvenience: screenshot

I wonder if this could be solved soon? Cheers

castarco commented 6 years ago

Hi @FinlayDaG33k , I'll check it. I'm sorry for being slow responding here. In fact, I'm currently working on a "workspaces" feature (to manage composer dependencies in a truly isolated way).

When I'll finish with the workspaces work, I'll check this issue.

castarco commented 6 years ago

P.D.: I think that we could "overwrite" the print_r function (creating another one available in the current namespace) producing a nicer output. But this is not a solution for people who calls the function using its fully qualified name \print_r .

FinlayDaG33k commented 6 years ago

Bug also seems to affect var_dump(). image

For the sake of, I've also tried var_export(), however, it doesn't seem to affect that? image

also noticed that both var_dump() and var_export() end with null, while print_r() ends with true.