Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

NOTEBOOKS TUTORIAL SAGEMATH

Views: 4553
%auto typeset_mode(True, display=False)

INSTALAÇÃO DE NOVOS PACOTES

Instalando o Pandas

No terminal

!easy_install pandas

%sh sage -i biopython
Error in lines 1-1 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/smc_sagews/sage_server.py", line 968, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/smc_sagews/sage_server.py", line 1009, in execute_with_code_decorators code = code_decorator(code) File "/usr/local/lib/python2.7/dist-packages/smc_sagews/sage_salvus.py", line 2060, in sh sh.jupyter_kernel = jupyter("bash") File "/usr/local/lib/python2.7/dist-packages/smc_sagews/sage_jupyter.py", line 31, in __call__ return _jkmagic(kernel_name, **kwargs) File "/usr/local/lib/python2.7/dist-packages/smc_sagews/sage_jupyter.py", line 113, in _jkmagic km, kc = jupyter_client.manager.start_new_kernel(kernel_name = kernel_name) File "/projects/sage/sage-dev/local/lib/python2.7/site-packages/jupyter_client/manager.py", line 433, in start_new_kernel kc.wait_for_ready(timeout=startup_timeout) File "/projects/sage/sage-dev/local/lib/python2.7/site-packages/jupyter_client/blocking/client.py", line 59, in wait_for_ready raise RuntimeError('Kernel died before replying to kernel_info') RuntimeError: Kernel died before replying to kernel_info

Usando o Pacote Instalado

import biopython
Error in lines 1-1 Traceback (most recent call last): File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 947, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> ImportError: No module named biopython
import seaborn as sb
import pandas as pd import random import matplotlib.pyplot as plt import seaborn as sns df = pd.DataFrame() df['x'] = [1,2,3,4,5,6] df['y'] = [7,8,9,4,5,6]
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/__init__.py:872: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter. warnings.warn(self.msg_depr % (key, alt_key))
df
x y
0 1 7
1 2 8
2 3 9
3 4 4
4 5 5
5 6 6