ipython / ipython-in-depth Goto Github PK
View Code? Open in Web Editor NEWIPython and Jupyter in-depth Tutorial, first presented at PyCon 2012
License: Other
IPython and Jupyter in-depth Tutorial, first presented at PyCon 2012
License: Other
I'm not finding much on how to use ipdb in the docs or vids of ipython.
Could someone please post a link or more details on how ipdb is used?
thank you
Dennis
Should give a nod to the python3 people as well:
answer = input("What is your favourite colour? ")
answer
I am trying to transfer environment.yml to requirements.txt and use pip install -r requirements.txt to install all packages.. Looks like nodejs package only have 0.1 version...??
Is Nodejs we install here a python package?
C:\data\external\ipython-in-depth>git checkout origin/master -f
error: unable to create file notebooks/Notebook/What is the IPython Notebook?.ip
ynb (Invalid argument)
HEAD is now at 3a95c0c... Last minute changes.
I suspect that windows does not like ?
. Would it be possible to rename the notebook?
Probably next to tab completion.
00 - Notebook Basics
first code line should read
from IPython.nbformat import current
with open('00 - Notebook Basics.ipynb') as f:
nb = current.read(f, 'json')
python 3.2
running ipython3 notebook
latest GIT pull
In order to get New cell magics to run I have to close down the notebook and restart it. Having to restart the kernel to get new cell magics to work is undesirable behavior.
Initially I run the cells then I came to new cell magics %%html.
kernel busy and stays busy.
the terminal displays no errors.
I shut down the kernel and then restart 00 - What's new in 1.0
THEN the new cell magics will work but I have to restart the kernel. I can reproduce this behavior.
Same for all new cell magics
%%html
%%latex
%%javascript
thank you
The "Overview of IPython.parallel.ipynb" notebook references the nonexistent "ipython-in-depth/exercises/figs/" folder instead of "ipython-in-depth/exercises/images/" thus causing broken image links.
Question : Error pop-up but I cannot find the path - /srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/.
Which path could I put "chromedriver.exe" back to solve FileNotFoundError?
Cell : Driver = webdriver.Chrome(r'C:\Users\chromedriver.exe')
FileNotFoundError Traceback (most recent call last)
/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/service.py in start(self)
75 stderr=self.log_file,
---> 76 stdin=PIPE)
77 except TypeError:
/srv/conda/envs/notebook/lib/python3.6/subprocess.py in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)
728 errread, errwrite,
--> 729 restore_signals, start_new_session)
730 except:
/srv/conda/envs/notebook/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1363 err_msg += ': ' + repr(err_filename)
-> 1364 raise child_exception_type(errno_num, err_msg, err_filename)
1365 raise child_exception_type(err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\chromedriver.exe': 'C:\Users\chromedriver.exe'
During handling of the above exception, another exception occurred:
WebDriverException Traceback (most recent call last)
in
----> 1 Driver = webdriver.Chrome(r'C:\Users\chromedriver.exe')
/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py in init(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:
/srv/conda/envs/notebook/lib/python3.6/site-packages/selenium/webdriver/common/service.py in start(self)
81 raise WebDriverException(
82 "'%s' executable needs to be in PATH. %s" % (
---> 83 os.path.basename(self.path), self.start_error_message)
84 )
85 elif err.errno == errno.EACCES:
WebDriverException: Message: 'C:\Users\chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Expand beyond plain python to say that !ls
is not really a list :-)
NameError Traceback (most recent call last)
in
----> 1 df2.iloc[2]
NameError: name 'df2' is not defined
The front page notebook if accessed via clicking on the Python tutorial on the jupyter try website.
I assume it has to do with the spaces in the file names in the provided path. Some have them and the links apparently work in github's markdown but not in the markdown used by jupyter. A few links in the notebook substitute the spaces in the links with %20 and then they work.
This is extra annoying if you are visiting for the first time and have no clue how to fix the links temporarily to proceed.
Also, who would put spaces into file names? This can lead to a lot of issues under some systems.
The file examples/Notebook/What is the IPython Notebook?.ipynb
contains a character (?
) which is invalid on Windows.
This leads to issues when cloning the repo or unzipping an archive:
oberstet@THINKPAD-T410S /f/scm/3rdparty
$ git clone [email protected]:ipython/ipython-in-depth.git
Cloning into 'ipython-in-depth'...
remote: Counting objects: 1255, done.
remote: Total 1255 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1255/1255), 12.23 MiB | 39.00 KiB/s, done.
Resolving deltas: 100% (680/680), done.
error: unable to create file examples/Notebook/What is the IPython Notebook?.ipynb (Invalid argument)
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
error
Walking through the tut and I found this error:
In [15]:
NameError Traceback (most recent call last)
in ()
----> 1 _7 == Out[7]
NameError: name '_7' is not defined
Heading cells automatically get anchors with their text, so you can link to them:
[like this](#Autosave)
[like this](#Autosave)
or like this
[test with underscore](#New_cell_magics)#works
[test with spaces](#New cell magics) #won't work<<<<<<<<<<
[nospaces](#Newcellmagics)#works
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.