Difference between revisions of "Osgeolive-jupyter"

From OSGeo
Jump to navigation Jump to search
(do_jupyter)
(jupyter vers)
Line 3: Line 3:
  
 
<pre>
 
<pre>
 +
dbb@focalk:~$ jupyter --paths
 +
config:
 +
    /home/dbb/.jupyter
 +
    /usr/local/etc/jupyter
 +
    /etc/jupyter
 +
data:
 +
    /home/dbb/.local/share/jupyter
 +
    /usr/local/share/jupyter
 +
    /usr/share/jupyter
 +
runtime:
 +
    /home/dbb/.local/share/jupyter/runtime
 +
--
 +
$ jupyter --version
 +
jupyter core    : 4.6.3
 +
jupyter-notebook : 6.0.3
 +
qtconsole        : not installed
 +
ipython          : 7.13.0
 +
ipykernel        : 5.2.0
 +
jupyter client  : 6.1.2
 +
jupyter lab      : not installed
 +
nbconvert        : 5.6.1
 +
ipywidgets      : 6.0.0
 +
nbformat        : 5.0.4
 +
traitlets        : 4.3.3
 +
 +
##-----------------------------------------
 
dbb@focalk:~$ ipython3
 
dbb@focalk:~$ ipython3
 
Python 3.8.10 (default, Nov 26 2021, 20:14:08)  
 
Python 3.8.10 (default, Nov 26 2021, 20:14:08)  

Revision as of 20:07, 19 February 2022

Focal Notes

dbb@focalk:~$ jupyter --paths
config:
    /home/dbb/.jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/dbb/.local/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /home/dbb/.local/share/jupyter/runtime
--
$ jupyter --version
jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : not installed
ipython          : 7.13.0
ipykernel        : 5.2.0
jupyter client   : 6.1.2
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : 6.0.0
nbformat         : 5.0.4
traitlets        : 4.3.3

##-----------------------------------------
dbb@focalk:~$ ipython3
Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import sklearn                                                                                               

In [2]: from sklearn import show_versions                                                                            

In [3]: show_versions()                                                                                              

System:
    python: 3.8.10 (default, Nov 26 2021, 20:14:08)  [GCC 9.3.0]
executable: /usr/bin/python3
   machine: Linux-5.13.0-30-generic-x86_64-with-glibc2.29

Python dependencies:
          pip: 20.0.2
   setuptools: 45.2.0
      sklearn: 1.0.2
        numpy: 1.17.4
        scipy: 1.3.3
       Cython: 0.29.14
       pandas: 0.25.3
   matplotlib: 3.1.2
       joblib: 1.1.0
threadpoolctl: 3.1.0

Built with OpenMP: True

  591  sudo apt install python3-dev python3-pip

  405  sudo apt install ipython3 python3-pandas python3-scipy
  408  sudo apt install r-cran-sf
  429  sudo apt install python3-shapely python3-fiona
  614  sudo apt install --yes python3-geoalchemy2

  670  sudo apt install --yes jupyter-core jupyter-client jupyter-console jupyter-nbformat jupyter-nbconvert jupyter-notebook python3-ipykernel
  673  sudo apt install python-notebook-doc jupyter

  605  pip install --user wheel
  606  pip install --user lightgbm
  616  pip install --user eo-learn
  630  pip install --user folium

$ ./do_jupyter.sh
#---------------------------
#!/bin/bash

jupyter notebook --no-browser --ip=192.168.1.131 --notebook-dir=.jupyter/notebooks

~/.bashrc

##-
PATH=$PATH:~/.local/bin