# how to Load in Jupyter

This doesn't works (latex_milp.py is on my desktop) on Windows10

What can I test ?

edit retag close merge delete

Hi Cyrille

on which OS do you work?,, but I do not know your userName and the dir of your ipynb is surely not the same as mine(you need to double the \ , i did it but it disseapear when the message is displayed:

on my W10 OS:

on my UBUNTU OS (do not double the /):

if you do not want to have to add the full path , then simply copy your file in the directory where you code is (the file *.ipynb)

to know the Desktop path on W10/8 open an explorer and click right on the Desktop icon in the tree, and look at the path in the general tab.

( 2019-10-07 01:31:08 -0500 )edit

it would be nicer, Cyrille, to say when someone answers your question if it helped to solve your problem or not.

if that's not the case can you tell us what's wrong

( 2019-10-07 08:53:24 -0500 )edit

Sorry Ortollj, I have a very busy day because of courses but also because I must taught tomorrow with S&ageMAth and I cannot obtain what I espect. Of course there are some difference in the managment of path between windows 10 and linux. In my case if I put the file in the good directory there is no problem but for all the other case not one of the suggestion works. And sincerely I appreciate your help.

( 2019-10-07 13:23:36 -0500 )edit

Ok >Cyrille ,But what is your OS ? if it is W10/8 did you think about doubling slashes ? , \\

but I imagine that as you are overwhelmed, the option to put the file in the code folder is enough. Good luck for tomorrow. but if you have time tick the @dsejas answer below in a way to pass this question solved the tick just under the 1 answer below.

( 2019-10-07 16:13:30 -0500 )edit

Sort by » oldest newest most voted

Hello, @Cyrille! I am not completely sure if there are differences between Windows and Linux (I use Linux), but I think the following three procedures are OS-independent:

1. If you launch the Sage Notebook from the terminal (command line), you can move first to the same directory where your latex_milp.py file is, and then launch the Sage Notebook with sage -n jupyter.

2. When you open the Sage Notebook, the first screen that is shown to you has a tree of folder through which you can navigate on your computer. Just move to the folder where your latex_milp.py is, and then open a new notebook with the "new" menu on you right.

3. When I am feeling a little lazy, I look for the file, I make right click on it, and select the "copy" option. Then I move to my Sage Notebook, write load(""), and in the middle of the quotation marks, I make right click and give the "paste" command. That copies the complete location of my file. For example, suppose I have my file on "/home/user/Documents/latex_milp.py". Exactly that location should appear in the middle of the load command. (I am not completely sure that this works on Windows.)

I hope this helps! If not, you should follow @ortollj's suggestion, and give us a little bit of additional info on the location of your file, so we can help.

more