1

Let's say I have created some variables in the python shell. I want to do something like this:

>>> animal="Cat"
>>> age="2"
>>> weight="3.8"
>>> name="Kitty"
>>> env.saveTo("./Cat.json")
>>> env.clear()
>>> env.loadFrom("./Cat.json")

Is it possible? I am using xonsh.

2
  • what is env in here? Commented Feb 23, 2018 at 9:08
  • env is some python object or package needed for me that facilitates the required functionality Commented Feb 23, 2018 at 14:20

1 Answer 1

1

Using xonsh I did

$ xonsh
$ animal="Cat"
$ age="2"
$ weight="3.8"
$ name="Kitty"
$ history > Cat
$ exit
$ xonsh
$ source Cat

Huh! Finally, I avoided jupyter notebook.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.