Ask Your Question

AndreWin's profile - activity

2019-05-08 08:28:36 -0500 received badge  Famous Question (source)
2019-04-21 20:24:35 -0500 received badge  Famous Question (source)
2018-10-21 04:02:20 -0500 received badge  Notable Question (source)
2018-07-01 10:11:28 -0500 received badge  Famous Question (source)
2018-01-15 13:47:04 -0500 received badge  Famous Question (source)
2017-07-29 19:23:24 -0500 received badge  Famous Question (source)
2017-01-04 06:22:38 -0500 received badge  Famous Question (source)
2016-12-15 19:22:03 -0500 received badge  Notable Question (source)
2016-07-26 13:53:40 -0500 received badge  Famous Question (source)
2016-06-30 18:38:33 -0500 received badge  Notable Question (source)
2016-06-30 18:38:33 -0500 received badge  Popular Question (source)
2016-05-01 14:43:33 -0500 received badge  Popular Question (source)
2016-04-11 03:23:14 -0500 received badge  Notable Question (source)
2016-03-18 12:46:45 -0500 received badge  Notable Question (source)
2016-03-18 12:46:45 -0500 received badge  Popular Question (source)
2015-11-13 04:52:45 -0500 answered a question Embed 3rd party javascript library in worksheet

Please create new cell above and use:

 load("./path/to/local/javascript_ifle.js")

Best regards, Andrey.

2015-11-13 04:50:45 -0500 answered a question Annoying folding behavior

If you write markdown or html code it will be hidden automatically. If you don't want this please use:

%md(hide = False)
%html(hide = False)

If doubleclick doesn't work please select cell output and press the </> button.

Best regards, Andrey.

2015-11-13 04:39:23 -0500 answered a question Comments with SageMath Cloud

If you are about .sagews files, you need press ctrl and / buttons. This will work only when your keyboard layout is English.

Best regards, Andrey.

2015-10-27 12:35:08 -0500 received badge  Notable Question (source)
2015-07-20 09:21:12 -0500 received badge  Famous Question (source)
2015-07-20 09:21:12 -0500 received badge  Popular Question (source)
2015-07-20 09:21:12 -0500 received badge  Notable Question (source)
2015-05-26 16:05:44 -0500 received badge  Popular Question (source)
2015-05-14 05:38:31 -0500 received badge  Famous Question (source)
2015-04-15 09:33:24 -0500 received badge  Famous Question (source)
2015-03-26 22:12:30 -0500 marked best answer How can I show any image in sage notebook via html?

Hello! I type in sage notebook 5.12 (linux mint 15 cinnamon):

html("<img src='1.png'></img>")

If 1.png is placed in DATA path, my code works fine.
When 1.png is placed in any other path, I can't do anything my code work.
Is it possible to show any image in sage notebook via html code?
I need html to create html output with images from my functions.
Please help me. Thanks a lot!)

2015-03-26 22:10:31 -0500 marked best answer Very strange error with html in sagenotebook

Hello!

I have function:

def my_table():
    s = """<table border=1>
    <tr><td>1</td><td>a</td><td>{0}</td></tr>
    <tr><td>2</td><td>b</td><td>{1}</td></tr>
    <tr><td>3</td><td>c</td><td>{2}</td></tr>
    <tr><td>4</td><td>d</td><td>{3}</td></tr>
    <tr><td>5</td><td>e</td><td>{4}</td></tr>
    <tr><td>6</td><td>f</td><td>{5}</td></tr>
    <tr><td>7</td><td>g</td><td>{6}</td></tr>""".format(0, 1, 2, 3, 4, 5, 6)
    html(s)

I create new worksheet in sage notebook, in 1st cell I paste this code. Then I press shift+enter. In 2nd cell I type:

my_table()

and also press shift+enter. Then I press "save and quit". After I closed this worksheet I open it and see that there are 2 tables and cells don't work correctly. When I try evaluate 2nd cell, the sage can't perform calculation.

What do I wrong? Please help me. Thanks.

2015-03-26 22:09:07 -0500 marked best answer boolean with numpy

Hello! Please explain me why

numpy.array([1/5])[0] == 0.2

is False but

numpy.array([1/5.])[0] == 0.2

is True. At 2nd line of code there is point after 5.
What should I do to get true at first line of code?
Thanks a lot.

2015-03-26 22:08:43 -0500 marked best answer Matplotlib cannot create a graph

Hello! Using www.sagenb.com I typed the following code in the cell of my worksheet:

import matplotlib.pyplot as plt
plt.plot([1, 3, 2, 4])
plt.show()

Unfortunately there isn't any graph under the cell. What should I do? Thanks.

2015-03-26 22:07:19 -0500 marked best answer How can I find out the name of some variable?

Hello! For example I have variable p in sage notebook. I need my class can find out the name of variable:

sage: p = 3
sage: my_class(p)
ans:  'p'

How to implement this feature? Thanks. P.S.: sorry if my english isn't good.

2015-03-26 22:07:17 -0500 marked best answer Is there any method of printing of sagecloud worksheet? (Yes, I tryed ctrl+P)

Hello!
I created some work at sage cloud and decided to print my work in pdf file. I tried to use ctrl+p, but the result is very bad :'(
Help me please. Thanks a lot!

2015-03-19 01:32:03 -0500 received badge  Popular Question (source)
2015-03-07 13:37:59 -0500 received badge  Notable Question (source)
2015-03-07 13:37:59 -0500 received badge  Famous Question (source)
2015-03-05 16:14:17 -0500 received badge  Popular Question (source)
2015-01-10 03:17:46 -0500 received badge  Autobiographer
2015-01-10 02:26:01 -0500 asked a question Errors with sage_eval

Hello!

I try to use function sage_eval and It seems for me that either I found bug either I don't understand smth.

cmds = """
def somef():
    return 443
res = somef()"""
sage_eval('res', cmds = cmds)

NameError: global name '_sage_const_443' is not defined

sage_eval('res', cmds="def somef(): return 443; res=somef()")

NameError: name 'res' is not defined.

Please give me some hints how to solve this problem. Thanks in advance.

Best regards, Andrei.

2015-01-03 02:07:12 -0500 received badge  Notable Question (source)
2014-12-07 08:38:06 -0500 commented question Sage notebook doesn't work [solved]

You are quite right. I created folder "Apps" before... But today I forgot about it :'( Now all works fine! ^_^ Thank a lot!)

2014-12-07 04:17:51 -0500 asked a question Sage notebook doesn't work [solved]

Hi! I installed sage 6.4.1 and launched sage notebook.
I press shift-enter and get new line.
I press enter and get new line too....
Also I found that sage notebook doesn't save my input.
Then I saw in terminal and found there are many problems.
It seems for me Flask doen't work.
I didn't have any problems during installing sage.
I attached log to my message. (UPD: Link to log file )
Please help me. Andrei.

2014-10-08 21:38:17 -0500 received badge  Famous Question (source)
2014-10-08 21:38:17 -0500 received badge  Notable Question (source)
2014-08-16 05:11:10 -0500 received badge  Notable Question (source)
2014-08-14 08:03:28 -0500 received badge  Notable Question (source)
2014-06-29 07:51:24 -0500 received badge  Enlightened (source)