Visual Studio Code for Python Programmers 1st Edition April Speight download
Visual Studio Code for Python Programmers 1st Edition April Speight download
https://ebookmeta.com/product/visual-studio-code-for-python-
programmers-1st-edition-april-speight/
https://ebookmeta.com/product/optimizing-visual-studio-code-for-
python-development-developing-more-efficient-and-effective-
programs-in-python-1st-edition-sufyan-bin-uzayr/
https://ebookmeta.com/product/visual-studio-code-for-sap-sap-
press-first-edition-leon-hassan/
https://ebookmeta.com/product/visual-studio-code-succinctly-1st-
edition-alessandro-del-sole/
https://ebookmeta.com/product/bossed-by-my-roommate-shacked-up-
love-1st-edition-penn-rivers/
The Humanity of Universal Crime Inclusion Inequality
and Intervention in International Political Thought 1st
Edition Sinja Graf
https://ebookmeta.com/product/the-humanity-of-universal-crime-
inclusion-inequality-and-intervention-in-international-political-
thought-1st-edition-sinja-graf-2/
https://ebookmeta.com/product/cruel-grace-cowboy-justice-
association-serials-and-stalkers-5-1st-edition-olivia-jaymes/
https://ebookmeta.com/product/programming-ruby-3-2-the-pragmatic-
programmers-guide-5-beta-3-march-28-2023-edition-noel-rappin/
https://ebookmeta.com/product/urban-and-visual-culture-in-
contemporary-iran-non-visibility-and-the-politics-of-everyday-
presence-1st-edition-pedram-dibazar/
https://ebookmeta.com/product/mastering-swift-package-manager-
build-and-test-modular-apps-using-xcode-1st-edition-avi-tsadok/
Hitchhiker A Biography Of Douglas Adams Simpson
https://ebookmeta.com/product/hitchhiker-a-biography-of-douglas-
adams-simpson/
Visual Studio® Code
for Python® Programmers
April Speight
Copyright © 2021 by John Wiley & Sons, Inc. All rights reserved.
ISBN: 978-1-119-77336-8
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any
means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section
107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or
authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood
Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 750-4470, or on the web at www.copyright.com. Requests to the
Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street,
Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permission.
Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing
this book, they make no representations or warranties with respect to the accuracy or completeness of the contents
of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose.
No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies
contained herein may not be suitable for your situation. You should consult with a professional where appropriate.
Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but
not limited to special, incidental, consequential, or other damages.
For general information on our other products and services or for technical support, please contact our Customer Care
Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available
in electronic formats. For more information about Wiley products, visit our web site at www.wiley.com.
Trademarks: WILEY and the Wiley logo are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or
its affiliates, in the United States and other countries, and may not be used without written permission. Visual Studio
is a registered trademark of Microsoft Corporation. Python is a registered trademark of Python Software Foundation.
All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any
product or vendor mentioned in this book.
And Eric—you were right. But with that aside, you’re the most supportive partner
an author could ever ask for in this thing we call life. We’re two halves of a whole.
My success is your success, and your success is my success.
About the Author
v
About the Technical Editor
Kraig Brockschmidt has worked on technical developer content for more than
30 years, publishing books, articles, sample code, and documentation for mul-
tiple programming languages and development platforms. He currently works
on developer documentation at Microsoft, specializing in using Python on
Microsoft’s cloud computing platform, Azure. He also authored the original set
of documentation for the Python extension for Visual Studio Code.
vii
Acknowledgments
Many thanks to those who have spent time creating, contributing, and improving
what I consider to be the optimal solution for a code editor. I would be com-
pletely remiss if I didn’t personally thank Kraig Brockschmidt, my technical
editor on this book; thanks again for your time and commitment.
Also, thanks goes to Rob for being an open ear throughout this entire process.
Although I didn’t understand what coding was in undergrad, the fact that you
did it so often intrigued me. Because of you, I’ve discovered a new skillset that
has evolved into where I am professionally in my career.
ix
Contents at a Glance
Introductionxix
Part I Welcome to Visual Studio Code 1
Chapter 1 Getting Started 3
Chapter 2 Hello World for Python 21
Chapter 3 Editing Code 33
Part II Additional Visual Studio Code Features 51
Chapter 4 Managing Projects and Collaboration 53
Chapter 5 Debugging 83
Chapter 6 Unit Testing 105
Chapter 7 Jupyter Notebook 117
Chapter 8 Using Git and GitHub with Visual Studio Code 135
Chapter 9 Deploy a Django App to Azure App Service with
the Azure App Service Extension 157
Chapter 10 Create and Debug a Flask App 177
Chapter 11 Create and Deploy a Container with Azure
Container Registry and Azure App Service 189
Chapter 12 Deploy an Azure Function Trigger by a Timer 209
Appendix Getting Started with Azure 221
Index 225
xi
Introductionxix
Part I Welcome to Visual Studio Code 1
Chapter 1 Getting Started 3
Installing Visual Studio Code 4
The Visual Studio Code User Interface 4
Activity Bar 5
Side Bar 6
Editor7
Panels11
Status Bar 12
Command Palette 12
Extensions14
Customizations15
Settings16
Color Themes and Icons 18
Keybindings18
Display Langage 18
Summary 19
Chapter 2 Hello World for Python 21
Installing a Python Interpreter 21
macOS22
Linux22
Windows22
Installing the Python Extension for Visual Studio Code 22
Creating a Python File 23
Selecting an Interpreter 24
Setting a Default Interpreter 26
xiii
Another Random Scribd Document
with Unrelated Content
CHAPTER XI
W
esley could not, of course, know that Pritchard was at that
time in the Mill awaiting his arrival. But it was the case that
the water-finder, learning that the coming of Mr. Wesley
was looked for during the afternoon, had gone to the Mill early and
had rejected the suggestion made by the blacksmith and Jake
Pullsford, that he should not appear in the presence of Mr. Wesley
until he was sent for. He was almost indignant at the hint conveyed
to him in an ambiguous way by Hal Holmes, that it would show
better taste if he were to remain away for the time being.
“Take my word for 't, Dick, you'll be brought face to face with him
soon enow,” said Hal. “You'll be wishful that you had ne'er been born
or thought of. Mr. Wesley is meek, but he isn't weak, and 'tis the
meek ones that's the hardest to answer when the time comes, and it
always comes too soon. Before your Monday comes you'll be wishful
to hide away and calling on the mountains to cover ye.”
“List to me, Hal; there's naught that will say nay to me when my
mind is made up, and go to face Mr. Wesley I shall,” Dick had
replied.
The blacksmith folded his big bare arms and looked at him with
curiosity from head to foot.
“A change has come o'er a good many of us since Mr. Wesley
began to preach, but what's all our changes alongside yours, Dick
Pritchard?” he said, shaking his head as though he relinquished this
task of solving the problem which had been suggested to him. “Why,
you was used to fear and tremble at the thin noise of your own
voice, Dick Pritchard. With these ears I have heard you make an
apology for saying 'Thank ye,' on the score that you were too bold.
But now you are for rushing headlong to meet the man that you
scarce dare lift your hat to a month or two agone.”
“I hadn't learned then all that there's in me now, Hal,” replied the
water-finder. “I always did despise myself, being unmindful that to
despise myself was to do despite to Heaven. Doesn't it stand to
reason, Hal, that the greater a man thinks himself, the greater is the
honour he does to his Maker? I think twice as much of God since I
came to see what a man He made in me.”
“That's a square apology for conceit, Dick, and I don't think aught
the better of you for putting it forward at this time and in such a
case as this. What, good fellow, would you be at the pains to
magnify a man's righteousness pace for pace with his conceit? At
that rate, the greater the coxcomb the more righteous the man.”
Dick was apparently lost in thought for some time. At last he
shook his head gravely, saying:
“Not for all cases, Hal, not for all cases. You be a narrow-souled
caviller, I doubt; you cannot comprehend an argyment that's like a
crystal diamond, with as many sides to it as a middling ignorant man
would fail to compute.”
“That may be, but I've handled many a lump of sea-coal that has
shown as many sides as any diamond that was ever dug out of the
earth, and it seems to me that your talk is more like the sea-coal
than the crystal, Dick, my friend,” said the blacksmith. “Ay, your
many-sided argyments are only fit to be thrust into the furnace, for
all, their sides.”
“Mr. Wesley will comprehend,” said Pritchard doggedly; “though
even Mr. Wesley might learn something from me. Ay, and in after
years you will all be glad to remember that you once dwelt nigh a
simple man by name Richard Pritchard.”
“In after years?” cried Hal Holmes. “Why, where are your after
years to come from, if the end of all things is to be on us on
Monday?”
“Don't you doubt but that 'twill come to an end on Monday,” said
the water-finder, “however you may twist and turn. Be sure that you
be prepared, Hal Holmes. You have been a vain-living blacksmith, I
am feared, and now you side with them that would persecute the
prophets. Prepare yourself, Hal, prepare yourself.”
This was the style in which the man had been talking for some
time, astonishing everyone who had known his extreme modesty in
the past; and this was the strain in which he talked when he had
entered the Mill, and found the miller, Jake Pulls-ford and Mr.
Hartwell seated together awaiting the arrival of Wesley.
The man's entrance at this time surprised them. They knew he
was aware that Mr. Wesley was returning in haste, owing solely to
his, Pritchard's, having put himself forward in a way that his
brethren could not sanction, and it never occurred to them that he
would wish to meet Mr. Wesley at this time. They were, as was Hal
Holmes, under the impression that when Wesley arrived Pritchard's
former character might show itself once more, causing him to avoid
even the possibility of meeting the preacher face to face.
They were soon undeceived. The water-finder was in no way
nervous when he came among them.
When he had in some measure recovered from his surprise, the
miller said: “We looked not for thy coming so soon, Dick, but maybe
'tis as well that thou 'rt here.”
“How could I be away from here unless I had hastened to meet
Mr. Wesley on his way hither?” said Pritchard. “I have been
trembling with desire to have his ear for the past week. It is laid on
me to exhort him on some matters that he neglected. These matters
can be neglected no longer.”
The miller looked at Jake Pullsford, and the latter sat aghast. He
was so astounded that he could only stare at Pritchard, with his
hands on his knees and his head in its usual poise, craning forward.
Some moments had passed before he succeeded in gasping out,
after one or two false starts:
“You—you—you—Dick Pritchard—you talk of exhorting Mr. Wesley?
Oh, poor fellow! poor fellow! Now, indeed, we know that you are
mad!”
“Mr. Wesley should ha' found out the gift that is mine,” said
Pritchard, quite ignoring the somewhat frank utterance of the carrier.
“I suspected myself during several months of having that great gift
of prophecy.'Twas no more than a suspicion for some time, and I
dare not speak before I was sure.”
“And what made thee sure, Dick?” asked the miller.
“'Twas reading how the great prophet, Moses, made water flow
from the rock,” replied Pritchard. “'What,' said I to my own self.
'What, Richard Pritchard, hath not all thy life been spent in
performing that great miracle of Moses, and hast not known the
greatness of thy gift?' And then I made search and found that water-
finding has been the employment of most of the great prophets,
Elijah being the foremost. Like to a flash from a far-off cannon gun,
that reaches the eyes before ever the sound of the boom comes
upon the ear, the truth was revealed to me. I knew then that the gift
of the Tishbite was mine.”
It was Jake Pullsford who now looked at the miller. The miller
shook his head.
“'Twould not matter much what you thought of yourself, Dick,”
said the miller, “if only you had not been admitted to our fellowship;
but things being as they be—-”
He shook his head again.
“What overcomes me is the thought of thy former habit of life,
Dick,” said the carrier. “Why, up to a month agone, a man more
modest, shy and tame speaking, wasn't to be found in all the West
Country. Why, man, I've seen thee sweat at the sound of thine own
voice, like as if thou hadst been a thief a-hearing o' the step of an
officer! Meek! Meek is no name for it! I give thee my word that it oft
made me think shame of all manhood in the world to hear thee
make apology for a plain truth that, after all, thou wast too bashful
to utter!”
“You could not see my heart, Miller,” said Pritchard. “'Twas only
that I was humble in voice; I know now that in spirit I was puffed up
with pride, so that I could hardly contain myself. But even after the
truth came upon me in that flash, I was ready to treat the likes of
you, Miller—ay, even the likes of thee, Jake Pullsford, as mine equal,
so affable a heart had I by birth.”
“You promoted yourself a bit, Dick,” remarked the miller. “But I've
always observed that when a man tells another in that affable way
that he regards the other as his equal, he fancies in the inwardness
of his heart, that he is far above the one he gives such an assurance
to.”
“I feel a sort of light of knowledge within me ready to break forth
and tell me a wonderful reply to that remark of yours, Miller,” said
Pritchard. “Tarry a while, and give me time for the light to-break
forth with fulness, and you'll be rewarded; friends, you will hear a
reply that will make you all stand back in amaze, and marvel, as I
have done, how noble a thing is the gift of speech—saying a phrase
or two that makes the flesh of man tingle. All I ask is time. It may
not come to me within the hour, but——”
“Here's one that hath come to thee, my man, and he will listen to
all you have to say: I hear the sound of his horse on the lane,” cried
the miller.
Jake Pullsford sprang from the settle, and strained himself to look
out of the window.
“Right; 'tis Mr. Wesley, in very deed,” he said.
“That's as should be,” cried Pritchard, with an air of satisfaction
that made the others feel the more astonished.
And when Wesley had entered and greeted his-friends, including
the water-finder, they were a good deal more astonished at the
attitude taken by Pritchard. Without wasting time over preliminaries,
he assumed that Wesley had come to the Mill in order not to
admonish him, but to be admonished by him. Before Mr. Wesley had
time to say more than a word, Pritchard had become fluent on the
subject of the preacher's responsibilities. It was not for Mr. Wesley to
go wandering in the uttermost parts of Cornwall, he said; he should
have remained at Porthawn to consolidate the work that he had
begun; had he done so until he had gathered in every soul, the Lord
might have been as merciful to the world as He had been to Nineveh
in the days of Jonah. But Mr. Wesley had, like Jonah, fled from his
duty, and the next Monday was to be the Day of Judgment.
Wesley listened gravely until the man got upon his feet and with
an outstretched finger toward him, cried:
“I have been mocked by some, and held in silent despite by others
—all of them professing to be of the Household of Faith, because the
Spirit of prophecy came upon me, and I announced the truth. Nor,
Mr. Wesley, will you dare to join with the disbelievers and say
straight out that the first Monday will not be the Last Day that will
dawn on this world?”
“No,” said Wesley, “I would not be so presumptuous as to lay
claim to any knowledge that would entitle me to speak on a subject
of such awful import. 'Ye know not the day nor the hour'—those
were the words of our Lord, and anyone who makes profession of
knowing either, commits a grievous sin.”
“Ay, anyone but me,” said Pritchard. “But the revelation was made
to me—I take no glory to myself. The great and terrible Day of the
Lord cometh next Monday, and they shall cry unto the rocks to fall
on them and the mountains to cover them. What other place could
that refer to if not Ruthallion and Porthawn; is't not that Buthallion is
in the heart of the hills and Porthawn the place of rocks?”
With all gentleness Wesley spoke to the man of the great need
there was for caution on the part of anyone venturing to assign
times and seasons to such prophecies as had been uttered
respecting the mystery of the Last Judgment. He tried to show him
that however strong his own conviction was on the subject of the
Revelation, he should hold his peace, for fear of a mistake being
made and enemies being afforded a reason for railing against the
cause which they all had at heart. The interpretation of prophecy, he
said, was at all times difficult and should certainly not be lightly
attempted even by those men who had spent all their lives dealing
with the subject, with the light of history to guide them. Nothing
could exceed the tact, patience and gentleness with which the
pastor pleaded with this erring one of his flock—the miller and Jake
Pullsford were amazed at his forbearance; they learned a lesson
from him which they never forgot. He was patient and said no word
of offence all the time that they were waxing irritable at the
foolishness of the man who sat shaking his head now and again, and
pursing out his lips after the manner of pig-headed ignorance when
objecting to the wisdom of experience.
It was all to no purpose that Wesley spoke. The man listened, but
criticised with the smile of incredulous superiority on his face almost
all the time that Wesley was speaking—it varied only when he was
shaking his head, and then throwing it back defiantly. It was all to
no purpose.
“You are right, Mr. Wesley, in some ways,” he cried. “But you talk
of the interpretation of prophecy. Well, that is within your sphere,
and I durstn't stop you so far. Ay, but I am not an interpreter of
prophecy—I am the very prophet himself. Friends, said not I the
truth to you this hour past—how I felt as it were a burst of flame
within me, whereby I knew that I had been possessed of the spirit
of prophecy? The gift of water-finding, which has been mine since
my youth, was only bestowed upon the major prophets, Moses being
the chief; and when I read of Elijah, who in the days of the grievous
water famine was enabled by the exercise of his gift, and guided by
the hand of the Lord, to find water—even the running brook Chereth
—in the midst of a land that was dusty dry, all unworthy doubt was
set at rest. Is it not written that Elijah, the prophet, was to come
back to earth to warn the people of the Great Day being at hand?”
“Dear friend, stay thy tongue for a moment—say not words that
might not be forgiven thee even by the Most Merciful,” cried Wesley.
“You are a great preacher and a faithful servant—up to a certain
point, Mr. Wesley; but you are not as I am,” replied Pritchard firmly,
but not without a tone of tenderness. “You are a preacher; I am the
prophet. I have spoken as Jonah spoke to the men of Nineveh: 'Yet
forty days and Nineveh shall be overthrown.' 'In eleven days the
world shall be overthrown,' said I, feeling the flame within me.”
“The people of Nineveh repented and the destruction was
averted,” said Wesley. “Have there been signs of a great repentance
among the people who got tidings of your prediction?”
“My prophecy has everywhere been received with ridicule,” replied
the man proudly.
“I can testify to that,” said Jake Pullsford. “I travel about, as you
know, and I hear much of what is talked over from here to Devon,
and only for a few light-headed women—ready to believe that the
moon was the sun if they were told so from the pulpit—only for
these, it might be said that Dick's foolishness would ha' fallen on
ears as deaf as an adders.”
“I, myself, can bear witness to the evil effect that has been
produced among a people who were, I hoped, ready for the sowing
of the good seed,” said Wesley. “It was a great sorrow to me to hear
the lightness of talk—the offer of wagers—the excuse of
drunkenness—all the result of Richard Pritchard's indiscretion.”
“And everywhither it has been received as coming from us—from
us whom you have instructed in the Truth, sir,” said Jake. “'Tis not
Dick Pritchard that has been ridiculed, but we whom they call
Methodists. That is the worst of it.”
“And now that I have paved the way for you, the preacher, Mr.
Wesley, you will be able for three days to exhort the people to
repentance,” said Pritchard, with the air of a man accustomed to
give advice on grave matters, with confidence that his advice would
be followed.
“My duty is clear,” said Wesley. “I shall have to disclaim all
sympathy with the statements made by Richard Pritchard. Souls are
not to be terrorised to seek salvation. I am not one of those
ministers who think that the painting of lurid pictures of the
destruction of the earth and all that is therein the best way of
helping poor sinners. Nay, there have come under mine own eyes
many instances of the very temporary nature of conversions brought
about by that paradox of the gospel of terror. But need we look for
guidance any further away than the history of Jonah and the
Ninevites? The prophet preached destruction, and the people
repented. But how long did the change last? The fire and brimstone
had to be rained down upon them before the sackcloth that they
assumed was worn out.”
“On Monday the fire and brimstone will overwhelm the whole
world, and woe be to him that preacheth not from that text till
then!” cried Pritchard. He was standing at one end of the table
facing the window that had a western aspect, and as he spoke, the
flaming beams of the sinking sun streamed through the glass and
along the table until they seemed to envelop him. In spite of the
smallness of his stature he seemed, with the sunbeams striking him,
to possess some heroic elements. The hand that he uplifted was thin
and white, and it trembled in the light. His face was illuminated, not
from without only; his eyes were large and deep, and they seemed
staring at some object just outside the window.
Watching him thus, everyone in the room turned toward the
window—Wesley was the only exception; he kept his eyes fixed upon
the man at the foot of the table. He saw his eyes move as if they
were following the movements of someone outside, and their
expression varied strangely. But they were the eyes of a man who is
the slave of his nerves—of a visionary who is carried away by his
own ill-balanced imagination—of the mystic who can see what he
wishes to see.
Wesley was perplexed watching this man whose nature seemed to
have completely changed within the month. He had had a good deal
of strange experience of nervous phases, both in men and women
who had been overcome by his preaching, but he had never before
met with a case that was so strange as this. The man was no
impostor; an impostor would have been easy to deal with. He was a
firm believer in his own mission and in his own powers, and therein
lay the difficulty of suppressing him.
And while Wesley watched him, and everyone else seemed striving
to catch a glimpse of the object on which the man's eyes were fixed,
the light suddenly passed out of his eyes and they became like those
of a newly dead man, staring blankly at that vision which comes
before the sight of a soul that is in the act of passing from the earth
into the great unknown Space. There he stood with his hand still
upraised, and that look of nothingness in his staring eyes..
Wesley sprang up from the table to support him when he fell, and
he appeared to be tottering after the manner of a man who has
been shot through the heart while on his feet; and Wesley's
movement caused the others to turn toward the man.
In a second the miller was behind him with outstretched arms
ready to support him. Pritchard did not fall just then, however.
Breathlessly and in a strained silence, the others watched him while
he swayed to the extent of a hand's breadth from side to side, still
with his hand upraised and rigid. For some minutes—it might have
been five—he stood thus, and in the end he did not collapse. He
went slowly and rigidly backward into Wesley's arms, and then down
into his own chair, his eyes still open—still blankly staring, devoid of
all expression.
“Dead—can he be dead?” whispered Jake, slipping a hand under
his waistcoat.
Wesley shook his head.
“He is not dead, but in a trance,” he replied.
CHAPTER XII
F
or half an hour the four men in that room sat watching with
painful interest the one who sat motionless in the chair at the
end of the table. There was not one of them that had not a
feeling of being a watcher by the side of a bed on which a dead
body was lying. Not a word was exchanged between them. In the
room there was a complete silence—the silence of a death chamber.
The sound of the machinery of the mill—the creaking of the wooden
wheels, and the rumbling of the grindstones—went on in dull
monotony in the mill, and from the kitchen, beyond the oaken door,
there came the occasional clink of a pan or kettle; and outside the
building there was the clank of the horses of a waggon, and the loud
voices of the waggoners talking to the men in one of the lofts, and
now and again directing the teams. A cock was crowing drowsily at
intervals in the poultry run, and once there was a quacking squabble
amongst the ducks on the Mill race. And then, with the lowing of the
cows that were being driven to the milking shed, came the laughter
of a girl, passing the waggoners.
But in the room there was silence, and soon the dimness of
twilight.
And then John Wesley prayed in a low voice.
J
ohn Wesley had ample food for thought for the remainder of his
journey. He knew that the man who had appeared to him so
suddenly out of the mist had for some time been on the brink of
madness through his wild passion for Nelly Pol-whele, which brought
about a frenzy of jealousy in respect of any man whom he saw near
the girl. The fierceness of his gibes was due to this madness of his.
But had the wretch stumbled in his blindness over a true thing? Was
it the truth that he, Wesley, had all. unknown to himself drawn that
girl close to him by a tenderer cord than that which had caused her
to minister to his needs after he had preached his first great
sermon?
The very idea of such a thing happening was startling to him. It
would have seemed shocking to him if it had not seemed incredible.
How was it possible, he asked himself, that that girl could have been
drawn to love him? What was he to attract the love of such a young
woman? He was in all matters save only one, cold and austere. He
knew that his austereness had been made the subject of ridicule—of
caricature—at Oxford and Bath and elsewhere. He had been called
lugubrious by reason of his dwelling so intently on the severer side
of life, and he had never thought it necessary to defend himself from
such charges. He was sure that they were not true.
That was the manner of man that he was, and this being so, how
was it possible that he should ever draw to himself the love of such
a bright creature as Nelly Polwhele? What was she? Why, the very
opposite to him in every respect. She was vivacious—almost
frivolous; she had taken a delight in all the gaieties of life—why, the
first time he saw her she had been in the act of imitating a notorious
play-actress, and, what made it worse, she was playing the part
extremely well. To be sure she had taken his reproof with an
acknowledgment that it was deserved, and she had of her own free
will and under no pressure from him promised that she would never
again enter a playhouse; but still he knew that the desire for such
gaieties was not eradicated from her nature. It would be unnatural
to suppose' that it was. In short, she had nothing in common with
him, and to fancy that she had seen anything in him to attract her
love would be to fancy the butterfly in rapture around a thistle.
Oh, it was incredible that such a thing should happen. The notion
was the outcome of the jealousy of that wretch. Why, the first time
that the man had seen them together had he not burst out on them,
accusing him of stealing away the child's affection, although he had
not been ten minutes by her side?
Of course the notion was preposterous. He felt that it was so, and
at the same moment that this conviction came to him, he was
conscious of a little feeling of sadness to think that it was so. The
more certain he became on the matter the greater was the regret
that he felt.
Was it curious that he should dwell upon what the man had said
last rather than upon what he had said first? But some time had
passed before he recalled the charge that Bennet had brought
against him almost immediately after they had met—the charge of
having Nelly Polwhele in his thoughts rather than the work with
which he had been entrusted by his Maker. The man had accused
him of loving the girl, and declared that his present trouble was the
rebuke that he had earned.
He had been startled by this accusation. Was that because he did
not know all that was in his own heart? Could it be possible that he
loved Nelly Polwhele? Once before he had asked himself this
question, and he had not been able to assure himself as to how it
should be answered, before he received that letter calling him back
to this neighbourhood; and all thoughts that did not bear upon the
subject of that' letter were swept from his mind. He knew that he
heard in his ear a quick whisper that said:
“You will be beside her again within four days;” but only for a
single second had that thought taken possession of him. It had
come to him with the leap up of a candle flame before it is
extinguished. That thought had been quenched at the moment of its
exuberance, and now he knew that this accusation brought against
him was false; not once—not for a single moment, even when riding
far into the evening through the lonely places of the valley where he
might have looked to feel cheered by such a thought, had his heart
whispered to him:
“You will be beside her again within four days.”
She had not come between him and the work which he had to do.
But now the man had said to him all that brought back his
thoughts to Nelly Polwhele; and having, as he fancied, answered the
question which he put to him respecting her loving him, he found
himself face to face with the Question of the possibility of his loving
her.
It came upon him with the force of a blow; the logical outcome of
his first reflections:
“If I found it incredible that she could have any affection for me
because we have nothing in common, is not the same reason
sufficient to convince me that it is impossible I could love her?”
He was exceedingly anxious to assure himself that the feeling
which he had for her was not the love which a man has for a
woman; but he did not feel any great exultation on coming to this
logical conclusion of his consideration of the question which had
been suggested to him by the accusations of Bennet; on the
contrary, he was conscious of a certain plaintive note in the midst of
all his logic—a plaintive human note—the desire of a good man for
the love of a good woman. He felt very lonely riding down that valley
of sea-mist permeated not with the cold of the sea, but with the
warmth of the sunlight that struck some of the highest green ridges
of the slopes above him. His logic had led him only into his barren
loneliness, until his sound mental training, which compelled him to
examine an argument from every standpoint, asserted itself and he
found that his logic was carrying him on still further, for now it was
saying to him: