I have been watching tutorials on data mining using python. I have installed Anaconda Python 3.5 package for windows 64 bit with default installation. I have made the program available to all users on my laptop. I am running windows 10 64 bit. I am able to open Jupyter notebook on localhost at http://localhost:8888 and browse to the folder than contains iPython notebook file. I can type commands in the text box but could not execute them. I don't know if this can be fixed by changing the current configuration. I have attached two screenshots for references. It is weird that the play button is missing. Instead a next button is shown at the same place. It will be greatly appreciated if someone could walk me through the steps. I do not know how to generate logs for debugging. But I am willing to try. Thanks everyone!
The info here http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Running%20Code.html says try shift+enter or green rectangle button. Would it not be easier to just save the file and run it from terminal with python (file)?
Try the "Cell" dropdown and "Run all" or while in the cell (the side highlight would be green), do shift + enter at same time.
Ipython has two modes: One to edit/run. Another to navigate.
Related
I have quite a large jupyter notebook I'm working on in VScode, while using the high performance computing facility (connected through SSH).
I am trying to create some internal hyperlinks so I can jump from my table of contents to a specific section in the notebook. However, this does not work.
Code I'm using to create the link:
[Summary](#Summary)
some other cells
## Summary
It does create a link, but clicking on it does not work in VScode. This one keeps me right at the top of the notebook, other links to sections further down bring me to seemingly random cells down my file. Also, when opening the notebook in Github, clicking the link brings me back to the folder where my notebook is located.
The same construction does work both in a local jupyter instance, and in vscode, when not connected to the HPC.
One difference I can think of is that I use miniconda on the HPC, and the full anaconda installation locally.
Are the links not supported in miniconda? Or is it something else?
I'm new to coding Python in VSCode. Previously I used Spyder but decided to move to VSCode as the project management seems better in it (I could easily switch to other files/folders by clicking on the path, just like in PyCharm). But I really need this one workflow which I still have not managed to do it in VSCode.
write some codes like Selenium.
Click run (F5)
The selenium browser opens up.
I could use the Ipython terminal to access the code interactively (find the element in the browser etc) and send new command.
I would like to have this workflow in VSCode. Im also quite overwhelmed by the difference in these 2 IDEs, for example, in VSCode, you have integrated terminal, a debugging console and an output tab, while im used to have only one-for-all Ipython tab.
Ok, I figured out what I need. Basically I just need to right click on the python file that I want to run on the side bar. Then I have to select 'run current file in interactive window'. The only difference is on the Ipython console, I have to use shift+Enter to send my input instead of just clicking enter. But its not a big deal.
I am really enjoying WSL and using it for a lot of stuff these days, including my Ansible workstation, also writing a lot more code in it...
Question: I can see where the WSL file system is:
https://askubuntu.com/questions/759880/where-is-the-ubuntu-file-system-root-directory-in-windows-nt-subsystem-and-vice
All of the docs tell you very clearly to stay away from the Linux file system and not to access it from the Windows instance it is running under. Fine. But! I hate to ask redundant question, but I would dearly, dearly love to be able to use full blown graphical VS Code in Windows in my text editor for WSL. Am i missing a trick somewhere for a way to do this without breaking anything?
Apologies for the non question. Hopefully it is allowed.
In vscode...
You can press the green icon bottom-left
This will open the command palette
Choose "New WSL Window"
Open a folder, you will be able to navigate from ~ to choose location in command palette
Once folder is choosen, you're set to go, vscode will display file tree from opened folder and you can do your thing :)
So I'm working on two machines and they both have Eclipse and Pydev on them. The first machine has a console that has a prompt where I can type in and execute commands when I run on:
The second machine doesn't have the same prompt and I can't figure out how to get it:
I've been looking around online and the closest piece of advice I found is that I need to find the console button on the menu bar next to the tabs and select to show/hide the prompt, but as you can see it's doesn't show up on the second machine. Does anyone know how to I can get the console prompt on the second machine?
Found the issue. I was using PyDev 2.8.2 which didn't support the prompt, I updated to 4.5.4 (higher versions don't show up in my eclipse) and now I'm able to see it.
i'm looking at the Ipthon in depth videos. One of the first execises is import files from the dashboard. It's a very simple process, preesing the "click here" to import the file, select the ipython notebook file, and that's it. That's why i'm very frustrated. Every time i do this, the name of the file is on the list for a few seconds (with the upload button), and then disappears, without any error message on the dashboard nor in the terminal. There's is some kind of verbose output so i can see what's happen? I'm using Ipython 0.13.2 on fedora 18
Thanks!
Until you get a complete answer this might work. When I was having issues with this (a complete cleanout and reinstall of IPython sorted it for me), I could still import files by using the drag and drop interface.
I am on Win7 64 so different OS