Ask Your Question

AndreWin's profile - activity

2022-06-02 19:06:59 +0200 received badge  Nice Question (source)
2020-11-15 21:24:19 +0200 received badge  Popular Question (source)
2019-05-08 15:28:36 +0200 received badge  Famous Question (source)
2019-04-22 03:24:35 +0200 received badge  Famous Question (source)
2018-10-21 11:02:20 +0200 received badge  Notable Question (source)
2018-07-01 17:11:28 +0200 received badge  Famous Question (source)
2018-01-15 20:47:04 +0200 received badge  Famous Question (source)
2017-07-30 02:23:24 +0200 received badge  Famous Question (source)
2017-01-04 13:22:38 +0200 received badge  Famous Question (source)
2016-12-16 02:22:03 +0200 received badge  Notable Question (source)
2016-07-26 20:53:40 +0200 received badge  Famous Question (source)
2016-07-01 01:38:33 +0200 received badge  Notable Question (source)
2016-07-01 01:38:33 +0200 received badge  Popular Question (source)
2016-05-01 21:43:33 +0200 received badge  Popular Question (source)
2016-04-11 10:23:14 +0200 received badge  Notable Question (source)
2016-03-18 18:46:45 +0200 received badge  Notable Question (source)
2016-03-18 18:46:45 +0200 received badge  Popular Question (source)
2015-11-13 11:52:45 +0200 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 11:50:45 +0200 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 11:39:23 +0200 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 18:35:08 +0200 received badge  Notable Question (source)
2015-07-20 16:21:12 +0200 received badge  Popular Question (source)
2015-07-20 16:21:12 +0200 received badge  Famous Question (source)
2015-07-20 16:21:12 +0200 received badge  Notable Question (source)
2015-05-26 23:05:44 +0200 received badge  Popular Question (source)
2015-05-14 12:38:31 +0200 received badge  Famous Question (source)
2015-04-15 16:33:24 +0200 received badge  Famous Question (source)
2015-03-27 04:12:30 +0200 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-27 04:10:31 +0200 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-27 04:09:07 +0200 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-27 04:08:43 +0200 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-27 04:07:19 +0200 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-27 04:07:17 +0200 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 07:32:03 +0200 received badge  Popular Question (source)
2015-03-07 20:37:59 +0200 received badge  Famous Question (source)
2015-03-07 20:37:59 +0200 received badge  Notable Question (source)
2015-03-05 23:14:17 +0200 received badge  Popular Question (source)
2015-01-10 10:17:46 +0200 received badge  Autobiographer
2015-01-10 09:26:01 +0200 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 09:07:12 +0200 received badge  Notable Question (source)
2014-12-07 15:38:06 +0200 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 11:17:51 +0200 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-09 04:38:17 +0200 received badge  Famous Question (source)
2014-10-09 04:38:17 +0200 received badge  Notable Question (source)
2014-08-16 12:11:10 +0200 received badge  Notable Question (source)