SharedMathics-in-CoCalc.mdOpen in CoCalc
Author: Samuel Lelièvre
Views : 4
Description: Mathics in CoCalc

Mathics in CoCalc

Mathics

Mathics Jupyter kernels

IMathics

Development has stalled.

iwolfram

iwolfram is a Jupyter kernel for the Wolfram language, usable with Wolfram Mathematica and with Mathics.

Installing in CoCalc

Install Mathics

~$ pip --version
pip 19.0.3 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
~$ which pip3
/usr/local/bin/pip3
~$ pip3 --version
pip 19.0.3 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)

~$ which mathics
~$ pip3 install mathics --user
Collecting mathics
  Downloading https://files.pythonhosted.org/packages/52/55/b05cc9ca8507c46c505c450e33ecda7740e8402d6cca5e6418e2a49ceebf/Mathics-1.0.tar.gz (4.7MB)
    100% |████████████████████████████████| 4.7MB 6.3MB/s 
Requirement already satisfied: cython>=0.15.1 in /usr/local/lib/python3.6/dist-packages (from mathics) (0.29.6)
Collecting sympy==1.0 (from mathics)
  Downloading https://files.pythonhosted.org/packages/f3/ae/585ca7545c7e8d3a8130cc3d0cf53cfa489c137f8257e743fd3e18d7c401/sympy-1.0.tar.gz (4.3MB)
    100% |████████████████████████████████| 4.3MB 6.4MB/s 
Collecting django<1.9a0,>=1.8 (from mathics)
  Downloading https://files.pythonhosted.org/packages/96/b9/b4108da1275dc2ac1bba1e87739cb31b3d44339affb83b0e949fb09c2bef/Django-1.8.19-py2.py3-none-any.whl (6.2MB)
    100% |████████████████████████████████| 6.2MB 5.3MB/s 
Requirement already satisfied: mpmath>=0.19 in /usr/lib/python3/dist-packages (from mathics) (1.0.0)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.6/dist-packages (from mathics) (2.7.3)
Requirement already satisfied: colorama in /usr/local/lib/python3.6/dist-packages (from mathics) (0.3.9)
Requirement already satisfied: six>=1.10 in /usr/local/lib/python3.6/dist-packages (from mathics) (1.10.0)
Building wheels for collected packages: mathics, sympy
  Building wheel for mathics (setup.py) ... done
  Stored in directory: /home/user/.cache/pip/wheels/75/18/b2/5d9896e1b45d659a7d3868155bbd742eaca9e2177cbdda25c4
  Building wheel for sympy (setup.py) ... done
  Stored in directory: /home/user/.cache/pip/wheels/e9/da/27/7b3174cf54e5bb20982d599cee0e6480faf48cbc2d5e407637
Successfully built mathics sympy
qiskit-terra 0.7.0 has requirement sympy>=1.3, but you'll have sympy 1.0 which is incompatible.
qiskit-aqua 0.4.1 has requirement scikit-learn==0.20.0, but you'll have scikit-learn 0.20.3 which is incompatible.
qiskit-aqua 0.4.1 has requirement sympy>=1.3, but you'll have sympy 1.0 which is incompatible.
Installing collected packages: sympy, django, mathics
Successfully installed django-1.8.19 mathics-1.0 sympy-1.0
~$ mathics

Mathics 1.0
on CPython 3.6.7 (default, Oct 22 2018, 11:32:17) 
using SymPy 1.0, mpmath 1.0.0

Copyright (C) 2011-2016 The Mathics Team.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions.
See the documentation for the full license.

Quit by pressing CONTROL-D

In[1]:= 2 + 2
Out[1]= 4

In[2]:= 

Goodbye!

Install iwolfram

???