coder-spirit / jupyter-php Goto Github PK
View Code? Open in Web Editor NEWA PHP Kernel for Jupyter
License: MIT License
A PHP Kernel for Jupyter
License: MIT License
ERROR: Unable to find the composer executable.
By just trying:
root@server:~# ./jupyter-php-installer.phar install
root@server:~# uname -a
Linux 4.4.0-042stab120.20 #1 SMP Fri Mar 10 16:52:50 MSK 2017 x86_64 x86_64 x86_64 GNU/Linux
root@server:~# php -v
PHP 7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.18-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
Anybody knows how to fix the error?
kernel dead.
oh no!
It would be nice to add support to some PsySH commands:
doc
command: online documentation.ls
command: for introspection.wtf
command: errors introspection, for debugging.Running php ./jupyter-php-installer.phar install I get the following error:
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
If I run the composer install with the composer.json from the repository it install the dependencies without any problem.
Any idea on how to make this work?
Thank you!
Some things should be better documented
Some kernels like IPython allow sending complex objects to the Jupyter Notebook, like tables, plots, or even interactive widgets. It would be nice to add those capabilities to the Jupyter-PHP kernel.
It would be awesome to have a logo for this project ^_^ . Anyone around here with artistic aptitudes?
It would be nice to allow install per-notebook packages using composer, with automatically enabled autoloading for those per-notebook packages.
BUT, we have to confirm in first place if that's even possible:
It would be nice to use TravisCI and Scrutinizer to improve the project's quality.
How can render and display HTML in output?
I try this codes:
header("Content-Type: text/html; charset=utf-8");
echo "Hi <b>world!</b>";
But have this in output:
Hi <b>world!</b>
In other words, what is the equivalent of the following python commands in Jupyter-PHP?
from IPython.core.display import display, HTML
display(HTML('<h1>Hello, world!</h1>'))
This is what all the other kernels seem to be doing. Could have options that redirect it to a file, but sending it by default also helps in log capture when running on the cloud (see also http://12factor.net/) which is useful for installs like paws.wmflabs.org (where I'm hoping to get this installed!)
As @mmorton75 commented, other Jupyter kernels handle in a different way expression evaluations and data sent to stdout
.
More info about this bug can be found in the discussion of the issue #17 .
I have installed Jupyter-PHP everything is fine but i get this annoying error msg each keyword I type in my atom .
OS: Ubuntu 16.04
[2017-08-12 14:39:57] ShellMessagesHandler.DEBUG: Received message {"processId":10003,"zmqIds":"dealer23dcb0af-5552-49bd-9cdb-61ff2de89398","hmac":"84f6449c65446f5a1eddfcf08dd9abb0284adffdbeea28dddd520b193327ba64","header":{"username":"evil_reaper","session":"00000000-0000-0000-0000-000000000000","msg_type":"complete_request","msg_id":"complete_b5eea831-619f-49ff-997d-f61c93f9d3b4","date":"2017-08-12T09:09:57.213Z","version":"5.0"},"parentHeader":"{}","metadata":"{}","content":{"code":"$en","text":"$en","line":"$en","cursor_pos":3}} [] [2017-08-12 14:39:57] ShellMessagesHandler.ERROR: Unknown message type {"processId":10003,"header":{"username":"evil_reaper","session":"00000000-0000-0000-0000-000000000000","msg_type":"complete_request","msg_id":"complete_b5eea831-619f-49ff-997d-f61c93f9d3b4","date":"2017-08-12T09:09:57.213Z","version":"5.0"}} []
Currently I'm able to install this using Jupyter-PHP-Installer, but would be nice to be able to install from this repo (to aid in development)
We should ensure that Jupyter-PHP is compatible with PHP 7.
Why do not syntax highlight the php codes?!
Is not this important?!
We should ensure that Jupyter-PHP is compatible with HHVM.
Hi there!
I want to use php in jupyterlab, but I encountered the following problem during the installation process. Does anyone know how to solve this?
Thank you very much.
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
# jupyter --version
Selected Jupyter core packages...
IPython : 7.30.1
ipykernel : 6.6.0
ipywidgets : 7.6.5
jupyter_client : 7.1.0
jupyter_core : 4.9.1
jupyter_server : 1.13.1
jupyterlab : 3.2.5
nbclient : 0.5.9
nbconvert : 6.3.0
nbformat : 5.1.3
notebook : 6.4.6
qtconsole : 5.2.2
traitlets : 5.1.1
# php --version
PHP 7.3.31-1~deb10u1 (cli) (built: Oct 24 2021 15:18:08) ( NTS )
# composer --version
Composer version 2.1.14 2021-11-30 10:51:43
# php -i | grep -i zmq
/etc/php/7.3/cli/conf.d/20-zmq.ini
zmq
ZMQ extension => enabled
ZMQ extension version => 1.1.3
libzmq version => 4.3.1
Below is the complete error.
# php jupyter-php-installer.phar install
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
# php jupyter-php-installer.phar install -vvv
[InvalidArgumentException]
The package name jupyter-php-instance is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-
]+
init [--name NAME] [--description DESCRIPTION] [--author AUTHOR] [--type [TYPE]] [--homepage HOMEPAGE] [--require REQUIRE] [--require-dev REQUIRE-DEV] [-s|--stability STABILITY] [-l|--license LICENSE] [--repository REPOSITORY] [-a|--autoload AUTOLOAD]
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
Thanks for great project.
Can use graphical chart and plot in the Jupyter-PHP be like matplotlib and Plotly library of jupyter python?
For example include Google Charts, chartjs, highcharts,... projects.
In other words, what is the equivalent of the following python commands in Jupyter-PHP?
import matplotlib.pyplot as plt
%matplotlib inline
plt.bar(range(0, 5), [10, 5, 13, 1, 20])
Jupyter Notebook shows a timeout message every time a Jupyter-PHP kernel is started. The timeout is related with the kerne_info_request
request. In theory, the kernel is responding with a kernel_info_reply
message, but for some reason this message is not arriving to (or not being accepted by) the kernel.
EDIT: This also causes missing syntax highlighting because Jupyter does not receive the needed info to use it in Pygments.
I am wondering if we can support melody : http://melody.sensiolabs.org/ .
May be an interesting feature if so.
When I run: php jupyter-php-installer.phar install
it throws:
ERROR: Error while trying to download Jupyter-PHP dependencies with Composer.
when I run: php jupyter-php-installer.phar install -v
it says:
The Jupyter-PHP kernel has been successfully installed.
but there is no single trail of php kernel
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: nteract/hydrogen#726
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.