Ask Your Question
1

Attaching files in notebook does not update contents

asked 2015-01-27 04:30:02 +0100

NahsiN gravatar image

updated 2023-01-09 23:59:35 +0100

tmonteil gravatar image

Hello, I am running Sage 6.4.1. Using the notebook interface, attaching files does not work as the files contents are not reloaded automatically. It just shows me the previous variable values.

echo "x=2" > foo.py 
attach foo.py 
x 
2
echo "x=4" > foo.py 
x 
2

As you can see the value of x isn't updated to 4. I can confirm that attach works as intended on the terminal, just the notebook interface is broken.

edit retag flag offensive close merge delete

Comments

1

By the way, this should be echo "x=2" > foo.py, not echo foo.py > "x=2"

tmonteil gravatar imagetmonteil ( 2015-01-27 15:31:04 +0100 )edit

You're right. Had a brain fart there. Edited

NahsiN gravatar imageNahsiN ( 2015-01-27 22:25:05 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-01-27 15:20:07 +0100

kcrisman gravatar image

Correct, this is https://github.com/sagemath/sagenb/is... - you'll notice on the "Help" page that there is some language to this effect. If you have any ideas for how to fix this we would be very appreciative, as we want notebook and terminal behavior to be as similar as possible.

edit flag offensive delete link more

Comments

Ah I see, didn't know this was an ongoing issue. Sadly the "fix" is beyond my scope of the moment. Let's hope for the best. At least now I know my installation is not busted.

NahsiN gravatar imageNahsiN ( 2015-01-27 22:27:12 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-01-27 04:30:02 +0100

Seen: 453 times

Last updated: Jan 27 '15