Skip to content

Commit fbcd520

Browse files
authored
Merge pull request #279 from dcsaba89/main
2 parents efa01e0 + 32f3447 commit fbcd520

File tree

5 files changed

+51
-52
lines changed

5 files changed

+51
-52
lines changed

LICENSE

Lines changed: 13 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# Licensing terms
2-
3-
This project is licensed under the terms of the Modified BSD License
4-
(also known as New or Revised or 3-Clause BSD), as follows:
1+
BSD 3-Clause License
52

63
- Copyright (c) 2001-2015, IPython Development Team
74
- Copyright (c) 2015-, Jupyter Development Team
@@ -11,50 +8,24 @@ All rights reserved.
118
Redistribution and use in source and binary forms, with or without
129
modification, are permitted provided that the following conditions are met:
1310

14-
Redistributions of source code must retain the above copyright notice, this
15-
list of conditions and the following disclaimer.
11+
1. Redistributions of source code must retain the above copyright notice, this
12+
list of conditions and the following disclaimer.
1613

17-
Redistributions in binary form must reproduce the above copyright notice, this
18-
list of conditions and the following disclaimer in the documentation and/or
19-
other materials provided with the distribution.
14+
2. Redistributions in binary form must reproduce the above copyright notice,
15+
this list of conditions and the following disclaimer in the documentation
16+
and/or other materials provided with the distribution.
2017

21-
Neither the name of the Jupyter Development Team nor the names of its
22-
contributors may be used to endorse or promote products derived from this
23-
software without specific prior written permission.
18+
3. Neither the name of the copyright holder nor the names of its
19+
contributors may be used to endorse or promote products derived from
20+
this software without specific prior written permission.
2421

25-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
26-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
22+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2926
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3027
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3128
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3229
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3330
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3431
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35-
36-
## About the Jupyter Development Team
37-
38-
The Jupyter Development Team is the set of all contributors to the Jupyter project.
39-
This includes all of the Jupyter subprojects.
40-
41-
The core team that coordinates development on GitHub can be found here:
42-
https://github.com/jupyter/.
43-
44-
## Our Copyright Policy
45-
46-
Jupyter uses a shared copyright model. Each contributor maintains copyright
47-
over their contributions to Jupyter. But, it is important to note that these
48-
contributions are typically only changes to the repositories. Thus, the Jupyter
49-
source code, in its entirety is not the copyright of any single person or
50-
institution. Instead, it is the collective copyright of the entire Jupyter
51-
Development Team. If individual contributors want to maintain a record of what
52-
changes/contributions they have specific copyright on, they should indicate
53-
their copyright in the commit message of the change, when they commit the
54-
change to one of the Jupyter repositories.
55-
56-
With this in mind, the following banner should be used in any source code file
57-
to indicate the copyright and license terms:
58-
59-
# Copyright (c) Jupyter Development Team.
60-
# Distributed under the terms of the Modified BSD License.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include COPYING.md
1+
include LICENSE
22
include CONTRIBUTING.md
33
include README.md
44

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,31 @@ $ python -m pep517.build .
4747
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html) [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
4848
- [Issues](https://github.com/jupyter/jupyter_console/issues)
4949
- [Technical support - Jupyter Google Group](https://groups.google.com/forum/#!forum/jupyter)
50+
51+
## About the Jupyter Development Team
52+
53+
The Jupyter Development Team is the set of all contributors to the Jupyter project.
54+
This includes all of the Jupyter subprojects.
55+
56+
The core team that coordinates development on GitHub can be found here:
57+
https://github.com/jupyter/.
58+
59+
## Our Copyright Policy
60+
61+
Jupyter uses a shared copyright model. Each contributor maintains copyright
62+
over their contributions to Jupyter. But, it is important to note that these
63+
contributions are typically only changes to the repositories. Thus, the Jupyter
64+
source code, in its entirety is not the copyright of any single person or
65+
institution. Instead, it is the collective copyright of the entire Jupyter
66+
Development Team. If individual contributors want to maintain a record of what
67+
changes/contributions they have specific copyright on, they should indicate
68+
their copyright in the commit message of the change, when they commit the
69+
change to one of the Jupyter repositories.
70+
71+
With this in mind, the following banner should be used in any source code file
72+
to indicate the copyright and license terms:
73+
74+
```
75+
# Copyright (c) Jupyter Development Team.
76+
# Distributed under the terms of the Modified BSD License.
77+
```

jupyter_console/tests/writetofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (C) 2012 The IPython Development Team
33
#
44
# Distributed under the terms of the BSD License. The full license is in
5-
# the file COPYING, distributed as part of this software.
5+
# the file LICENSE, distributed as part of this software.
66
#-----------------------------------------------------------------------------
77

88
"""

jupyter_console/zmqhistory.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
""" ZMQ Kernel History accessor and manager. """
2-
#-----------------------------------------------------------------------------
2+
# -----------------------------------------------------------------------------
33
# Copyright (C) 2010-2011 The IPython Development Team.
44
#
55
# Distributed under the terms of the BSD License.
66
#
7-
# The full license is in the file COPYING.txt, distributed with this software.
8-
#-----------------------------------------------------------------------------
7+
# The full license is in the file LICENSE, distributed with this software.
8+
# -----------------------------------------------------------------------------
99

10-
#-----------------------------------------------------------------------------
10+
# -----------------------------------------------------------------------------
1111
# Imports
12-
#-----------------------------------------------------------------------------
12+
# -----------------------------------------------------------------------------
1313

1414
from IPython.core.history import HistoryAccessorBase
1515
from traitlets import Dict, List
1616

1717
from queue import Empty # Py 3
1818

19+
1920
class ZMQHistoryManager(HistoryAccessorBase):
2021
"""History accessor and manager for ZMQ-based kernels"""
2122
input_hist_parsed = List([""])
@@ -44,7 +45,7 @@ def _load_history(self, raw=True, output=False, hist_access_type='range',
4445
"""
4546
history = []
4647
if hasattr(self.client, "history"):
47-
## In tests, KernelClient may not have a history method
48+
# In tests, KernelClient may not have a history method
4849
msg_id = self.client.history(raw=raw, output=output,
4950
hist_access_type=hist_access_type,
5051
**kwargs)
@@ -69,7 +70,7 @@ def search(self, pattern="*", raw=True, search_raw=True,
6970
raw=raw, search_raw=search_raw,
7071
output=output, n=n, unique=unique)
7172

72-
def get_range(self, session, start=1, stop=None, raw=True,output=False):
73+
def get_range(self, session, start=1, stop=None, raw=True, output=False):
7374
return self._load_history(hist_access_type='range', raw=raw,
7475
output=output, start=start, stop=stop,
7576
session=session)
@@ -89,4 +90,3 @@ def reset(self, new_session=True):
8990
Nothing to do for ZMQ-based histories.
9091
"""
9192
pass
92-

0 commit comments

Comments
 (0)