Hello Jesús Marà The JavaScript kernel has custom output functions [1] such as $$.html(htmlString) $$.svg(svgString) $$.png(base64String) $$.jpeg(base64String) $$.mime(mimeBundle) What is the equivalent for $$.svg(svgString) for example? Regards Hannes [1] http://n-riesco.github.io/ijavascript/doc/custom.ipynb.html On 8/27/18, H. Hirzel <hannes.hirzel@gmail.com> wrote:
Actually there is a probably a configuration file, but not in the place where I checked, I assume.
I have Ubuntu or Ubuntu based test installations in partitions sda6,7,8,9,10. I can not recall in which partition in actually happened.
However I found out about the command [1]
jupyter --paths
And I did this in some of the different test installations [2]
In sda8 I have
user8@Latitude2:~$ ls /usr/share/jupyter kernels nbextensions
user8@Latitude2:~$ ls /usr/share/jupyter/kernels python3
user8@Latitude2:~$ ls /usr/local/share/jupyter/kernels pharo
So the probable explanation is that there was actually a configuration file but not in
/usr/local/share/jupyter/kernels/pharo
as you indicate in https://github.com/jmari/JupyterTalk/blob/master/README.md
but in
/usr/share/jupyter/kernels
So my guess is that a download *nteract* (https://www.nteract.io/) alone and pharo6.1 with Juyptertalk (thus no python notebook) should work in a new Linux installation if there is a
a kernel.json file with Pharo Smalltalk [3]
in either
/usr/local/share/jupyter/kernels/pharo OR /usr/share/jupyter/kernels/pharo
I will test that and report to the list.
--Hannes
[1] jupyter help =================
user10@Latitude2:~$ jupyter --help usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [subcommand]
Jupyter: Interactive Computing
positional arguments: subcommand the subcommand to launch
optional arguments: -h, --help show this help message and exit --version show the jupyter command's version and exit --config-dir show Jupyter config dir --data-dir show Jupyter data dir --runtime-dir show Jupyter runtime dir --paths show all Jupyter paths. Add --json for machine-readable format. --json output paths as machine-readable json
Available subcommands: bundlerextension console kernel kernelspec migrate nbconvert nbextension notebook qtconsole run serverextension troubleshoot trust
[2] jupyter paths in different test installations =================================================
sda7 ----- jupyter --paths config: /home/user25/.jupyter /home/user25/anaconda3/etc/jupyter /usr/local/etc/jupyter /etc/jupyter data: /home/user25/.local/share/jupyter /home/user25/anaconda3/share/jupyter /usr/local/share/jupyter /usr/share/jupyter runtime: /run/user/1000/jupyter
sda8 -------
jupyter --paths config: /home/user8/.jupyter /usr/etc/jupyter /usr/local/etc/jupyter /etc/jupyter data: /home/user8/.local/share/jupyter /usr/local/share/jupyter /usr/share/jupyter runtime: /run/user/1000/jupyter
user8@Latitude2:~$ ls /usr/share/jupyter kernels nbextensions user8@Latitude2:~$ ls /usr/share/jupyter/kernels python3 user8@Latitude2:~$ ls /usr/local/share/jupyter/kernels pharo user8@Latitude2:~$
sda10 -----
user10@Latitude2:~$ jupyter --paths config: /home/user10/.jupyter /usr/etc/jupyter /usr/local/etc/jupyter /etc/jupyter data: /home/user10/.local/share/jupyter /usr/local/share/jupyter /usr/share/jupyter runtime: /run/user/1000/jupyter
[3] Example kernel.json file for Pharo ======================================
ls /usr/local/share/jupyter/kernels/pharo kernel.json user8@Latitude2:~$ cat /usr/local/share/jupyter/kernels/pharo/kernel.json { "argv": [ "/home/user8/pharo-vm/bin/pharo", "/home/user8/Pharo.image", "ipharo", "{connection_file}" ], "display_name": "Pharo Smalltalk", "language": "smalltalk" }
On 8/24/18, Jesús Marà <jmariaguirre@gmail.com> wrote:
Last update works also on *nteract*
In the other hand, I could not understand how Jupyter knows about Pharo kernel without the configuration file!!! Unbelievable!
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html