Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook server - access to files on notebook side, upload menu in dashboard #8383

Closed
den-run-ai opened this issue Apr 27, 2015 · 14 comments
Closed
Milestone

Comments

@den-run-ai
Copy link

How can I access the files on notebook client side for use as data in the notebook computations, if the notebook server is located on remote machine?

Right now I can only access the files on the notebook server side.

Is the only option to copy the files to remote server?

@den-run-ai
Copy link
Author

client and server side do not have common storage access

@takluyver
Copy link
Member

Yes, all your code is running on the machine where the notebook server is. If they don't share a filesystem, then you will need to either copy the files to where the code runs, or run the server where the files are (technically you need to run the kernels there, but the easiest way to do that is to run the server there).

@takluyver takluyver added this to the no action milestone Apr 27, 2015
@den-run-ai
Copy link
Author

But it is possible to send files over sockets for built-in support in ipynb

On Mon, Apr 27, 2015, 12:45 PM Thomas Kluyver notifications@github.com
wrote:

Yes, all your code is running on the machine where the notebook server is.
If they don't share a filesystem, then you will need to either copy the
files to where the code runs, or run the server where the files are
(technically you need to run the kernels there, but the easiest way to do
that is to run the server there).


Reply to this email directly or view it on GitHub
#8383 (comment).

@takluyver
Copy link
Member

If you're running the notebook server on the remote machine, then the only communication with your local machine is the websockets your browser opens. And the browser doesn't have filesystem access.

@den-run-ai
Copy link
Author

@den-run-ai
Copy link
Author

ipython/traitlets#12

@den-run-ai
Copy link
Author

How can I modify that widget example not to display the file in notebook but to save it on remote ipython server?

@takluyver
Copy link
Member

It is transferring it to the kernel. Check file_widget.value after you've selected a file.

@den-run-ai
Copy link
Author

I was able to transfer text files, but binary did not go through correctly. Is there any way to transfer "raw" binary data using that widget?

@den-run-ai
Copy link
Author

Now I think it is better to include the file upload option right in the dashboard

@den-run-ai den-run-ai changed the title notebook server - access to files on notebook side notebook server - access to files on notebook side, upload menu in dashboard May 1, 2015
@den-run-ai
Copy link
Author

I found that Upload button on https://try.jupyter.org/, how do I get the same button on my notebook server installation?

@den-run-ai den-run-ai reopened this May 1, 2015
@minrk
Copy link
Member

minrk commented May 2, 2015

The upload button should be the same on local IPython as on try.jupyter. What version of IPython are you using?

@den-run-ai
Copy link
Author

'3.0.0'

@den-run-ai
Copy link
Author

Ok, I got the upload button on latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants